/* Contact Popup Styles */

/* Floating Contact Button */
.contact-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
    z-index: 9990;
    transition: all 0.3s ease;
}

.contact-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
}

.contact-float-btn i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-float-btn .btn-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-float-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.contact-float-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark-green);
}

/* Popup Overlay */
.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

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

/* Popup Modal */
.contact-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf7 100%);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(45, 90, 39, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* Decorative Top Banner */
.contact-popup .popup-banner {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 50%, var(--accent-green) 100%);
    padding: 30px 40px 25px;
    position: relative;
    overflow: hidden;
}

.contact-popup .popup-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-popup .popup-banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-popup .popup-banner-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.contact-popup .popup-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.contact-popup .popup-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
}

/* Close Button */
.contact-popup .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-popup .popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.contact-popup .popup-close i {
    font-size: 1rem;
    color: var(--white);
}

/* Popup Content */
.contact-popup .popup-content {
    padding: 30px 40px 35px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group label .required {
    color: #dc2626;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 2px solid var(--light-green);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Submit Button */
.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
    margin-top: 5px;
}

.btn-submit-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
    background: linear-gradient(135deg, var(--dark-green) 0%, #143d10 100%);
}

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

.btn-submit-contact i {
    font-size: 1.1rem;
}

/* Success Message */
.contact-success {
    display: none;
    text-align: center;
    padding: 20px;
}

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

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-success-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.contact-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.contact-success p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Contact Info */
.contact-info-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--light-green);
}

.contact-info-quick h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.contact-info-item i {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.contact-info-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--dark-green);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .contact-float-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .contact-float-btn .btn-tooltip {
        display: none;
    }
    
    .contact-popup-overlay {
        padding: 15px;
        align-items: flex-end;
    }
    
    .contact-popup {
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .contact-popup-overlay.active .contact-popup {
        transform: scale(1) translateY(0);
    }
    
    .contact-popup .popup-banner {
        padding: 25px 25px 20px;
    }
    
    .contact-popup .popup-banner h2 {
        font-size: 1.5rem;
    }
    
    .contact-popup .popup-banner-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-popup .popup-banner-icon i {
        font-size: 1.5rem;
    }
    
    .contact-popup .popup-content {
        padding: 25px 25px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-submit-contact {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
