/* Contact Form Popup Styles */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-popup {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-overlay.active .contact-popup {
    transform: translateY(0);
}

.contact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.contact-popup-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.contact-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.2s ease;
}

.contact-close-btn:hover {
    color: #e74c3c;
}

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

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-submit-btn:hover {
    background-color: #2980b9;
}

.contact-submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.contact-submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: contact-spin 0.8s linear infinite;
}

.contact-submit-btn.loading .spinner {
    display: inline-block;
}

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

.contact-form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.contact-form-error.show {
    display: block;
}

.contact-success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.contact-success-message.show {
    display: block;
}

.contact-success-message i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.contact-success-message h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-success-message p {
    color: #7f8c8d;
}

/* Footer Contact Link Styles */
.footer a.contact-link {
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer a.contact-link:hover {
    color: #2980b9;
    text-decoration: underline;
}