/**
 * IDAFA Theme - Shared Styles
 * Common CSS classes used across multiple templates
 */

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00BFA5, #0097A7);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #041521, #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Form Controls */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    color: #041521;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.form-control {
    background: white;
    border: 2px solid #e9ecef;
    color: #041521;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    border-color: #00BFA5;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 165, 0.15);
    color: #041521;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #00BFA5, #041521);
    border: none;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 191, 165, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Form Check */
.form-check-input:checked {
    background-color: #00BFA5;
    border-color: #00BFA5;
}

.form-check-input:focus {
    border-color: #00BFA5;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 165, 0.25);
}

/* Gradient Animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Page Background Pattern */
.page-pattern-bg {
    background: #ffffff url('../images/pattern.png') repeat;
    background-size: 200px 200px;
    background-blend-mode: overlay;
    min-height: 100vh;
}

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thank-you-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 21, 33, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.thank-you-popup-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 191, 165, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.thank-you-popup-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.thank-you-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #041521;
    transform: rotate(90deg);
}

.thank-you-popup-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #00BFA5 0%, #0097A7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 191, 165, 0.4);
    animation: iconBounce 0.6s ease 0.2s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-popup-icon i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.thank-you-popup-title {
    font-size: 2rem;
    font-weight: 900;
    color: #041521;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #041521, #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-popup-message {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 30px;
}

.thank-you-popup-btn {
    background: linear-gradient(135deg, #00BFA5, #0097A7);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 191, 165, 0.3);
}

.thank-you-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 191, 165, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    .btn-submit {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    .thank-you-popup-content {
        padding: 40px 30px;
        border-radius: 20px;
    }
    .thank-you-popup-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .thank-you-popup-icon i {
        font-size: 2.8rem;
    }
    .thank-you-popup-title {
        font-size: 1.6rem;
    }
    .thank-you-popup-message {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .thank-you-popup-btn {
        padding: 12px 35px;
        font-size: 1rem;
    }
}
