/* Contact Modal Component Styles */

/* Modal Overlay */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.contact-modal.active {
    display: flex;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active .contact-modal-overlay {
    opacity: 1;
}

/* Modal Content */
.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 40px;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-modal.active .contact-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dark);
    box-shadow:
        3px 3px 6px #d1d1d1,
        -3px -3px 6px #ffffff;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(90deg);
    box-shadow:
        3px 3px 10px rgba(26, 54, 93, 0.4),
        -3px -3px 10px rgba(255, 255, 255, 0.8);
}

/* Modal Header */
.contact-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-modal-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* Modal Form */
.contact-modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-modal-form .form-group {
    margin-bottom: 20px;
}

.contact-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-modal-form input,
.contact-modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Saira', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow:
        inset 2px 2px 5px #e0e0e0,
        inset -2px -2px 5px #ffffff;
}

.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow:
        inset 2px 2px 5px #e0e0e0,
        inset -2px -2px 5px #ffffff,
        0 0 0 3px rgba(26, 54, 93, 0.1);
}

.contact-modal-form input::placeholder,
.contact-modal-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.contact-modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.contact-modal-form .btn-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        5px 5px 10px rgba(26, 54, 93, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-modal-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        8px 8px 15px rgba(26, 54, 93, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.contact-modal-form .btn-submit:active {
    transform: translateY(0);
}

.contact-modal-form .btn-submit i {
    font-size: 14px;
}

/* Trigger Button */
.btn-contact-modal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
    box-shadow:
        4px 4px 8px rgba(26, 54, 93, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-contact-modal-trigger:hover {
    transform: translateY(-3px);
    box-shadow:
        6px 6px 12px rgba(26, 54, 93, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* Success Message */
.contact-modal-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-modal-success i {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.contact-modal-success h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-modal-success p {
    font-size: 14px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .contact-modal-header h3 {
        font-size: 20px;
    }

    .contact-modal-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-modal-form .form-group {
        margin-bottom: 16px;
    }

    .contact-modal-form input,
    .contact-modal-form textarea {
        padding: 12px 14px;
    }

    .contact-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

/* Animation for modal opening */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-modal-content.animate-in {
    animation: modalFadeIn 0.3s ease forwards;
}