/* ===== MAIN STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5e6c8 0%, #f0ddb8 30%, #ebcfa0 60%, #e6c590 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER STYLES ===== */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    max-width: 250px;
    height: auto;
}

.logo img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #d4a020 0%, #e6b832 25%, #f0c846 50%, #f5d35a 100%);
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 160, 32, 0.3);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    padding: 20px 0;
}

.hero-content .logo {
    flex-shrink: 0;
    z-index: 2;
    max-width: 180px;
}

.hero-content .logo img {
    max-height: 120px;
    max-width: 100%;
    height: auto;
    width: auto;
}

.hero-content .hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-content .support-btn {
    flex-shrink: 0;
    z-index: 2;
    margin-left: auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title .easy {
    font-style: italic;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title .placement {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    background: white;
    color: #0d5943;
    font-size: 32px;
    font-weight: 900;
    padding: 10px 40px;
    display: inline-block;
    border-radius: 50px;
    margin-top: 10px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: linear-gradient(135deg, #ffffff 0%, #fef8e6 30%, #f5f0d8 60%, #ede7d0 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.decorative-lights {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: repeating-linear-gradient(90deg, 
        #ff6b6b 0px, #ff6b6b 20px, transparent 20px, transparent 25px,
        #4ecdc4 25px, #4ecdc4 45px, transparent 45px, transparent 50px,
        #ffe66d 50px, #ffe66d 70px, transparent 70px, transparent 75px,
        #a8e6cf 75px, #a8e6cf 95px, transparent 95px, transparent 100px
    );
    border-radius: 20px 20px 0 0;
}

/* ===== INFO SECTION ===== */
.info-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 5px solid #1e7e5f;
}

.info-icon {
    font-size: 48px;
    float: left;
    margin-right: 20px;
    color: #1e7e5f;
}

.info-text {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.info-text strong {
    color: #1e7e5f;
}

.info-list {
    list-style: none;
    margin-top: 20px;
}

.info-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}

/* ===== FORM SECTION ===== */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.form-title {
    text-align: center;
    color: #0d5943;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.form-row {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1e7e5f;
    box-shadow: 0 0 0 3px rgba(30, 126, 95, 0.1);
}

.form-group input.error {
    border-color: #f44336;
}

.form-group input.valid {
    border-color: #4caf50;
}

.check-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: #4caf50;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.check-icon.show {
    display: flex;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #7cb342 0%, #6bb83a 25%, #5aa832 50%, #4a982a 75%, #3a881a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.illustration {
    position: absolute;
    right: 50px;
    bottom: 50px;
    width: 250px;
    opacity: 0.9;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 30%, #f1f3f4 60%, #e8eaed 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-illustration {
    text-align: center;
    margin-bottom: 20px;
}

.modal-text {
    text-align: center;
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-text p {
    margin-bottom: 10px;
}

.modal-phone {
    color: #e91e63;
    font-weight: bold;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-btn.secondary {
    background: linear-gradient(135deg, #ff9800 0%, #ff8f00 25%, #ff8500 50%, #ff7b00 75%, #f57c00 100%);
    color: white;
}

.modal-btn.secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f57c00 0%, #f57200 25%, #f56800 50%, #f55e00 75%, #e65100 100%);
    transform: translateY(-2px);
}

.modal-btn.primary {
    background: linear-gradient(135deg, #7cb342 0%, #6bb83a 25%, #5aa832 50%, #4a982a 75%, #3a881a 100%);
    color: white;
}

.modal-btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #689f38 0%, #5a8f2a 25%, #4a7f1a 50%, #3a6f0a 75%, #2a5f00 100%);
    transform: translateY(-2px);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== AI FEEDBACK SECTION ===== */
.ai-feedback-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-feedback-header h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.ai-feedback-content {
    line-height: 1.6;
    color: #34495e;
}

.ai-feedback-content p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: #7f8c8d;
}

.ai-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== ANSWERS GRID ===== */
.answers-grid {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.answers-section h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.answers-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.answers-subsection h4 {
    color: #34495e;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.answer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.answer-item.correct {
    background: #4caf50;
    color: white;
}

.answer-item.incorrect {
    background: #f44336;
    color: white;
}

.answer-item:hover {
    transform: scale(1.1);
}

.check-icon {
    margin-left: 5px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .answers-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .answers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
