/**
 * Modern Contact Form Section Styles
 * 
 * Styles for the Modern Contact Form Section Elementor widget.
 * Extracted from agrovue-landing-html/css/style.css
 * 
 * @package Meridian_Africa
 * @since 1.0.0
 */

/* ===========================
   MODERN FOOTER CONTACT SECTION
   =========================== */

.footer-contact-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
}

.footer-contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.4;
}

.contact-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.contact-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 143, 51, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.contact-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.contact-gradient-orb.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

.footer-contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.footer-contact-content {
    color: white;
}

.contact-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 143, 51, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #4ade80;
    margin-bottom: 24px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    animation: fadeInUp 0.8s ease;
}

.contact-badge-modern i {
    font-size: 14px;
}

.footer-contact-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.footer-contact-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contact-info-quick {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.quick-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 143, 51, 0.2);
    border-radius: 10px;
    color: #4ade80;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quick-info-item:hover i {
    background: rgba(46, 143, 51, 0.3);
    transform: scale(1.1);
}

.footer-contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.form-group-modern {
    position: relative;
}

.form-input-modern,
.form-textarea-modern,
.form-select-modern {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-select-modern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.form-select-modern option {
    background: #1e293b;
    color: white;
}

.form-input-modern:focus,
.form-textarea-modern:focus,
.form-select-modern:focus {
    border-bottom-color: #4ade80;
}

.form-input-modern::placeholder,
.form-textarea-modern::placeholder {
    color: transparent;
}

.form-label-modern {
    position: absolute;
    left: 0;
    top: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-label-modern.select-label-modern {
    top: -20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.form-label-modern.file-label-modern {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
}

.form-input-modern:focus ~ .form-label-modern,
.form-input-modern:not(:placeholder-shown) ~ .form-label-modern,
.form-textarea-modern:focus ~ .form-label-modern,
.form-textarea-modern:not(:placeholder-shown) ~ .form-label-modern {
    top: -20px;
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
}

.form-select-modern:focus ~ .form-label-modern.select-label-modern,
.form-select-modern:valid ~ .form-label-modern.select-label-modern {
    color: #4ade80;
}

.form-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2e8f33, #4ade80);
    transition: width 0.4s ease;
}

.form-input-modern:focus ~ .form-input-border,
.form-textarea-modern:focus ~ .form-input-border,
.form-select-modern:focus ~ .form-input-border {
    width: 100%;
}

.form-textarea-modern {
    resize: vertical;
    min-height: 120px;
    padding-top: 16px;
}

/* File Upload Styles */
.file-upload-modern {
    margin-top: 10px;
}

.file-upload-wrapper-modern {
    position: relative;
}

.file-input-modern {
    display: none;
}

.file-upload-label-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.file-upload-label-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4ade80;
    color: #4ade80;
}

.file-upload-label-modern i {
    font-size: 20px;
}

.file-text-modern {
    font-weight: 500;
}

.file-info-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.file-info-modern i {
    font-size: 12px;
}

/* Form Action Buttons */
.form-actions-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

.btn-submit-modern,
.btn-reset-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-submit-modern {
    background: linear-gradient(135deg, #2e8f33 0%, #4ade80 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(46, 143, 51, 0.3);
}

.btn-reset-modern {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-submit-modern::before,
.btn-reset-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit-modern:hover::before,
.btn-reset-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 143, 51, 0.4);
}

.btn-reset-modern:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-submit-modern:active,
.btn-reset-modern:active {
    transform: translateY(-1px);
}

.btn-submit-modern i,
.btn-reset-modern i {
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(5px);
}

.btn-reset-modern:hover i {
    transform: rotate(360deg);
}

.form-message-modern {
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideInUp 0.4s ease;
}

.form-message-modern.success {
    display: block;
    background: rgba(46, 143, 51, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-message-modern.error {
    display: block;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Footer Contact Form Section */
@media (max-width: 1024px) {
    .footer-contact-wrapper {
        gap: 60px;
    }

    .footer-contact-title {
        font-size: 40px;
    }

    .footer-contact-form-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .footer-contact-section {
        padding: 80px 0;
    }

    .footer-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-contact-title {
        font-size: 36px;
    }

    .footer-contact-description {
        font-size: 16px;
    }

    .footer-contact-form-container {
        padding: 35px;
    }

    .form-row-footer {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .form-actions-modern {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-gradient-orb.orb-1 {
        width: 350px;
        height: 350px;
    }

    .contact-gradient-orb.orb-2 {
        width: 300px;
        height: 300px;
    }

    .contact-gradient-orb.orb-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .footer-contact-section {
        padding: 60px 0;
    }

    .footer-contact-title {
        font-size: 28px;
    }

    .footer-contact-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .footer-contact-form-container {
        padding: 25px;
        border-radius: 16px;
    }

    .footer-contact-form {
        gap: 25px;
    }

    .btn-submit-modern,
    .btn-reset-modern {
        padding: 16px 32px;
        font-size: 15px;
    }

    .quick-info-item {
        font-size: 14px;
    }

    .quick-info-item i {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .file-upload-label-modern {
        padding: 16px;
        font-size: 14px;
    }

    .file-info-modern {
        font-size: 11px;
    }
}

