/**
 * Contact Form Section Widget Styles
 * Professional contact form with features sidebar
 * Version: 1.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.boundless-contact-form-section {
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}

.boundless-contact-form-section.bg-light {
    background: #f8f9fa;
}

.boundless-contact-form-section.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.boundless-contact-form-section.bg-dark {
    background: #1a1a2e;
}

.boundless-contact-form-section.bg-dark .form-title,
.boundless-contact-form-section.bg-dark .form-subtitle,
.boundless-contact-form-section.bg-dark .features-title {
    color: #fff;
}

.contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Form Header
   ========================================================================== */

.form-header {
    text-align: center;
    animation: fadeInDown 0.6s ease-out;
}

.form-title {
    font-size: 42px;
    font-weight: 700;
    color: #972424;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.form-title::after {
    /* content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2596be, #972424);
    border-radius: 2px; */
}

.form-subtitle {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0px auto 0;
    line-height: 1.7;
}

/* ==========================================================================
   Form Content Layout
   ========================================================================== */

.form-content-wrapper {
    display: grid;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    justify-content: center;
}

.layout-split .form-content-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.layout-centered .form-content-wrapper,
.layout-full .form-content-wrapper {
    grid-template-columns: 1fr;
    /* max-width: 800px; */
    margin: 0 auto;
}

/* ==========================================================================
   Form Wrapper
   ========================================================================== */

.form-wrapper {
    background: #fff;
    border-radius: 20px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 15px 50px rgba(26, 139, 153, 0.15); */
}

.form-inner {
    position: relative;
}

.no-form-message {
    text-align: center;
    padding: 40px;
    color: #972424;
    font-size: 16px;
    background: #fff3f3;
    border-radius: 10px;
    border: 2px dashed #972424;
}

/* ==========================================================================
   Features Sidebar
   ========================================================================== */

.features-wrapper {
    background: linear-gradient(135deg, #2596be 0%, #1b6f8d 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.features-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.features-inner {
    position: relative;
    z-index: 1;
}

.features-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-item svg {
    flex-shrink: 0;
    color: #ffd700;
    margin-top: 2px;
}

.feature-item span {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

/* ==========================================================================
   Contact Badges
   ========================================================================== */

.contact-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.badge svg {
    color: #ffd700;
    margin-bottom: 10px;
}

.badge span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* ==========================================================================
   Form Styling Enhancements
   ========================================================================== */

.form-inner input[type="text"],
.form-inner input[type="email"],
.form-inner input[type="tel"],
.form-inner input[type="url"],
.form-inner textarea,
.form-inner select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-inner input:focus,
.form-inner textarea:focus,
.form-inner select:focus {
    outline: none;
    border-color: #2596be;
    box-shadow: 0 0 0 4px rgba(26, 139, 153, 0.1);
}

.form-inner input[type="submit"],
.form-inner button[type="submit"] {
    background: linear-gradient(135deg, #972424 0%, #8a2415 100%);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.form-inner input[type="submit"]:hover,
.form-inner button[type="submit"]:hover {
    background: linear-gradient(135deg, #8a2415 0%, #972424 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 44, 25, 0.3);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .layout-split .form-content-wrapper {
        grid-template-columns: 1fr;
    }

    .form-wrapper,
    .features-wrapper {
        padding: 40px 30px;
    }

    .contact-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .boundless-contact-form-section {
        padding: 60px 20px;
    }

    .form-title {
        font-size: 32px;
    }

    .form-subtitle {
        font-size: 15px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .features-wrapper {
        padding: 30px 20px;
    }

    .features-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .boundless-contact-form-section {
        background: #fff;
        padding: 20px 0;
    }

    .features-wrapper {
        display: none;
    }

    .form-wrapper {
        box-shadow: none;
    }

    .form-inner input[type="submit"],
    .form-inner button[type="submit"] {
        display: none;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .feature-item:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .features-wrapper::before {
    right: auto;
    left: -50%;
}
