/* ==========================================================================
   Contact Form Section
   ========================================================================== */

   .contact-form-section {
    background: var(--color-primary, #153C6D);
    overflow: hidden;
    padding: 40px;
}

.contact-form-section-layout {
    display: flex;
    flex-direction: row-reverse; /* RTL: Image on right, form on left */
    align-items: stretch;
    /* gap: 60px; */
    max-width: 1400px;
    /* border-radius: 1rem; */
    border-radius: 1.8rem;
    margin: 0 auto;
    background: #ffffff45;
}

/* Left Side - Form Content */
.contact-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-form-section.animate-in .contact-form-content {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-content-inner {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-form-title {
    font-size: 26px;
    font-weight: 400;
    color: white;
    margin: 0 0 8px;
    line-height: 1.3;
    text-align: right;
}

.contact-form-subtitle {
    font-size: 34px;
    font-weight: 700;
    color: white;
    margin: 0 0 48px;
    line-height: 1.3;
    text-align: center;
}

/* Form Wrapper - CF7 Styling */
.contact-form-wrapper {
    width: 100%;
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 2rem 2rem;
}

/* Form Row - Two columns */
.contact-form-wrapper .form-row {
    display: flex;
    flex-direction: row-reverse; /* RTL: Name on right, Phone on left */
    gap: 32px;
}

.contact-form-wrapper .form-row > p,
.contact-form-wrapper .form-row > .form-field {
    flex: 1;
}

/* Form Field */
.contact-form-wrapper .form-field {
    display: flex;
    flex-direction: column;
}

/* Labels */
.contact-form-wrapper label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    /* margin-bottom: 12px; */
    text-align: right;
}

/* Input Fields - Minimal underline style */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 0 0 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgb(255 255 255 / 92%);
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    text-align: right;
    direction: rtl;
}

.contact-form-wrapper input[type="text"]::placeholder,
.contact-form-wrapper input[type="email"]::placeholder,
.contact-form-wrapper input[type="tel"]::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-bottom-color: white;
}

/* Phone input - numbers only, LTR for numbers */
.contact-form-wrapper input[type="tel"] {
    direction: ltr;
    text-align: right;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Submit Button Wrapper */
.contact-form-wrapper .submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Submit Button with Arrow */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    padding: 16px 40px;
    background: white;
    color: var(--color-primary, #153C6D);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-direction: row; /* Arrow on left, text on right */
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Arrow SVG in button */
.contact-form-wrapper .submit-arrow {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* CF7 Validation Messages */
.contact-form-wrapper .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    text-align: right;
}

.contact-form-wrapper .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-spam-blocked {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Right Side - Image */
.contact-form-image {
    flex: 0 0 577px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    border-radius: 1rem;
}

.contact-form-section.animate-in .contact-form-image {
    opacity: 1;
    transform: translateX(0);
}

.contact-form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center top; */
    /* border-radius: 0 24px 24px 0; */ /* Rounded corners on right side only */
    background: white;
    padding: 0;
    border-radius: 1.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .contact-form-section {
        padding: 32px;
    }
    
    .contact-form-section-layout {
        gap: 40px;
    }
    
    .contact-form-image {
        flex: 0 0 340px;
    }
    
    .contact-form-title {
        font-size: 24px;
    }
    
    .contact-form-subtitle {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    .contact-form-section {
        padding: 24px;
    }
    
    .contact-form-section-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-image {
        flex: none;
        height: 400px;
        order: -1; /* Image first on mobile */
        padding: 0;
        margin-bottom: 24px;
    }
    
    .contact-form-image img {
        border-radius: 1rem;
    }
    
    .contact-form-content {
        padding: 0;
        order: 1; /* Content after image */
    }
    
    .contact-form-content-inner {
        max-width: 100%;
    }
    
    .contact-form-title {
        font-size: 22px;
    }
    
    .contact-form-subtitle {
        font-size: 26px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 20px;
    }
    
    .contact-form-image {
        height: 350px;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .contact-form-content {
        padding: 0;
    }
    
    .contact-form-title {
        font-size: 20px;
    }
    
    .contact-form-subtitle {
        font-size: 24px;
        margin-bottom: 28px;
    }
    
    /* Stack form fields on mobile */
    .contact-form-wrapper .form-row {
        flex-direction: column;
        gap: 32px;
    }
    
    .contact-form-wrapper input[type="text"],
    .contact-form-wrapper input[type="email"],
    .contact-form-wrapper input[type="tel"],
    .contact-form-wrapper textarea {
        padding: 0 0 8px 0;
        font-size: 14px;
    }
    
    .contact-form-wrapper input[type="submit"],
    .contact-form-wrapper .wpcf7-submit {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        max-width: unset;
    }
}
@media (min-width: 1024px) {
.contact-form-wrapper .wpcf7-form {

    padding: unset !important;
}
.contact-form-wrapper .submit-wrapper {
 
    justify-content: end !important;

}
}
@media (max-width: 480px) {
    .contact-form-wrapper label {
        display: block;
        font-size: 20px;

    }
    .contact-form-section {
        padding: 16px;
    }
    
    .contact-form-image {
        height: 320px;
        padding: 1rem;
        margin-bottom: 16px;
    }
    
    .contact-form-content {
        padding: 0;
    }
    
    .contact-form-title {
        font-size: 30px;
        text-align: center;
        margin-bottom: unset;
    }
    
    .contact-form-subtitle {
        font-size: 30px;
        margin-bottom: 24px;
        font-weight: 400;
    }
}
.wpcf7-spinner {
 

    position: absolute;
}
.form-field p br{
    display: none;;
}