/* ================================================================
   CONTACT US MODAL
   Beautiful, rounded, themed contact form
   ================================================================ */

/* Modal Content Container */
.contact-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(2, 6, 24, 0.2);
}

/* Modal Header - Gradient */
.contact-modal-header {
    background: linear-gradient(135deg, var(--main-dark-blue) 0%, #0a2540 100%);
    padding: 1.75rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 201, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 201, 80, 0.15);
    border: 1px solid rgba(0, 201, 80, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    font-size: 1.75rem;
    flex-shrink: 0;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.contact-header-text {
    color: #ffffff;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.contact-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Close Button */
.btn-close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-close-modal:hover {
    background: rgba(224, 25, 30, 0.8);
    border-color: transparent;
    transform: rotate(90deg);
}

/* Modal Body */
.contact-modal-body {
    padding: 2rem;
    background: #ffffff;
}

/* Form Labels */
.contact-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--main-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-label i {
    color: var(--main-green);
    font-size: 0.85rem;
}

/* Input Wrapper */
.contact-input-wrapper {
    position: relative;
}

/* Inputs */
.contact-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--main-dark-blue);
    background: #fafafa;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.contact-input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.contact-input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.contact-input:focus {
    outline: none;
    border-color: var(--main-green);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 201, 80, 0.12);
}

/* Textarea */
.contact-textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 100px;
}

/* Character Counter */
.contact-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Error Messages */
.contact-error {
    display: none;
    color: var(--main-red);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.contact-error.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Invalid State */
.contact-input.is-invalid {
    border-color: var(--main-red);
    background: #fff5f5;
}

.contact-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(224, 25, 30, 0.12);
}

/* Submit Button */
.btn-contact-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
}

.btn-contact-submit:hover:not(:disabled) {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
}

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

.btn-contact-submit i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-contact-submit:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* ================================================================
   SUCCESS MODAL
   ================================================================ */
.success-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 201, 80, 0.2);
}

.success-modal-body {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 201, 80, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon-wrapper i {
    font-size: 3rem;
    color: var(--main-green);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin-bottom: 0.5rem;
}

.success-message {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-success-close {
    padding: 0.7rem 2rem;
    background: var(--main-green);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-success-close:hover {
    background: #00b347;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 201, 80, 0.3);
}

/* ================================================================
   ERROR MODAL
   ================================================================ */
.error-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(224, 25, 30, 0.2);
}

.error-modal-body {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.error-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(224, 25, 30, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.error-icon-wrapper i {
    font-size: 3rem;
    color: var(--main-red);
}

.error-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--main-dark-blue);
    margin-bottom: 1rem;
}

.error-list {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.error-list ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--main-red);
    font-size: 0.88rem;
}

.error-list li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.error-list li:last-child {
    margin-bottom: 0;
}

.btn-error-close {
    padding: 0.7rem 2rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-error-close:hover {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 25, 30, 0.3);
}

/* ================================================================
   RESPONSIVE MODAL
   ================================================================ */
@media (max-width: 575.98px) {
    .contact-modal-header {
        padding: 1.25rem 1.25rem;
    }
    
    .contact-header-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-subtitle {
        font-size: 0.78rem;
    }
    
    .contact-modal-body {
        padding: 1.25rem;
    }
    
    .contact-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-contact-submit {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
}