/* ==========================================================================
   Contact Form 7 Custom Styling for Adani Shantigram Landing Page
   ========================================================================== */

/* Hero Form Styling */
.custom-cf7-hero-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.custom-cf7-hero-form .wpcf7 form p {
    margin: 0;
    padding: 0;
}

.custom-cf7-hero-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.custom-cf7-hero-form input[type="text"],
.custom-cf7-hero-form input[type="tel"],
.custom-cf7-hero-form input[type="email"],
.custom-cf7-hero-form select {
    width: 100% !important;
    background-color: #FAFAFA !important;
    border: 1px solid #E4E4E7 !important;
    border-radius: 2px !important;
    color: #0F1115 !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.custom-cf7-hero-form input:focus,
.custom-cf7-hero-form select:focus {
    background-color: #FFFFFF !important;
    border-color: #325C74 !important;
    box-shadow: 0 0 0 1px #325C74 !important;
}

/* +91 Prefix for Phone in Hero Form */
.custom-cf7-hero-form .wpcf7-form-control-wrap[data-name="your-phone"]::before,
.custom-cf7-hero-form .wpcf7-form-control-wrap[data-name="phone"]::before,
.custom-cf7-hero-form .phone-prefix-wrap::before {
    content: '+91';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 13.5px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
}

.custom-cf7-hero-form .wpcf7-form-control-wrap[data-name="your-phone"] input,
.custom-cf7-hero-form .wpcf7-form-control-wrap[data-name="phone"] input,
.custom-cf7-hero-form input.phone-with-prefix {
    padding-left: 3rem !important;
}

.custom-cf7-hero-form select {
    cursor: pointer !important;
    color: #4B5563 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 1em !important;
}

.custom-cf7-hero-form input[type="submit"],
.custom-cf7-hero-form button[type="submit"] {
    width: 100% !important;
    background-color: #239B2B !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 2px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 0.25rem !important;
    display: block !important;
    text-align: center !important;
}

.custom-cf7-hero-form input[type="submit"]:hover,
.custom-cf7-hero-form button[type="submit"]:hover {
    background-color: #1d8223 !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
}

.custom-cf7-hero-form .secure-text {
    font-size: 10px;
    color: #9CA3AF;
    text-align: center;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Offer Form Styling (Above Footer Section)
   ========================================================================== */

.custom-cf7-offer-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-cf7-offer-form .wpcf7 form p {
    margin: 0;
    padding: 0;
}

.custom-cf7-offer-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.custom-cf7-offer-form input[type="text"],
.custom-cf7-offer-form input[type="tel"],
.custom-cf7-offer-form input[type="email"],
.custom-cf7-offer-form select {
    width: 100% !important;
    background-color: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 2px !important;
    color: #0F1115 !important;
    padding: 0.875rem 1rem !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.custom-cf7-offer-form input:focus,
.custom-cf7-offer-form select:focus {
    border-color: #325C74 !important;
}

.custom-cf7-offer-form select {
    color: #4B5563 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1em !important;
}

.custom-cf7-offer-form input[type="submit"],
.custom-cf7-offer-form button[type="submit"] {
    width: 100% !important;
    background-color: #239B2B !important;
    color: #FFFFFF !important;
    padding: 1rem 1.5rem !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-top: 0.5rem !important;
    transition: all 0.3s !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}

.custom-cf7-offer-form input[type="submit"]:hover,
.custom-cf7-offer-form button[type="submit"]:hover {
    background-color: #1d8223 !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Popup Modal Form Styling (Enquiry Modal)
   ========================================================================== */

.custom-cf7-modal-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.custom-cf7-modal-form .wpcf7 form p {
    margin: 0;
    padding: 0;
}

.custom-cf7-modal-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.custom-cf7-modal-form label {
    display: block;
    font-size: 11px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.custom-cf7-modal-form input[type="text"],
.custom-cf7-modal-form input[type="tel"],
.custom-cf7-modal-form input[type="email"],
.custom-cf7-modal-form select {
    width: 100% !important;
    background-color: #FAFAFA !important;
    border: 1px solid #E4E4E7 !important;
    border-radius: 2px !important;
    color: #0F1115 !important;
    padding: 0.75rem 1rem !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.custom-cf7-modal-form input:focus,
.custom-cf7-modal-form select:focus {
    background-color: #FFFFFF !important;
    border-color: #325C74 !important;
    box-shadow: 0 0 0 1px #325C74 !important;
}

/* +91 Prefix for Phone in Modal Form */
.custom-cf7-modal-form .wpcf7-form-control-wrap[data-name="your-phone"]::before,
.custom-cf7-modal-form .wpcf7-form-control-wrap[data-name="phone"]::before,
.custom-cf7-modal-form .phone-prefix-wrap::before {
    content: '+91';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10;
}

.custom-cf7-modal-form .wpcf7-form-control-wrap[data-name="your-phone"] input,
.custom-cf7-modal-form .wpcf7-form-control-wrap[data-name="phone"] input,
.custom-cf7-modal-form input.phone-with-prefix {
    padding-left: 3rem !important;
}

.custom-cf7-modal-form input[type="submit"],
.custom-cf7-modal-form button[type="submit"] {
    width: 100% !important;
    background-color: #325C74 !important;
    color: #FFFFFF !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-top: 0.35rem !important;
    transition: all 0.3s ease !important;
    display: block !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px 0 rgba(50, 92, 116, 0.25) !important;
    text-align: center !important;
}

.custom-cf7-modal-form input[type="submit"]:hover,
.custom-cf7-modal-form button[type="submit"]:hover {
    background-color: #26485b !important;
    box-shadow: 0 6px 20px rgba(50, 92, 116, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Validation & Responses */
.custom-cf7-hero-form .wpcf7-not-valid-tip,
.custom-cf7-offer-form .wpcf7-not-valid-tip,
.custom-cf7-modal-form .wpcf7-not-valid-tip {
    font-size: 11px !important;
    color: #DC2626 !important;
    margin-top: 4px !important;
    display: block !important;
}

.custom-cf7-hero-form .wpcf7-response-output,
.custom-cf7-offer-form .wpcf7-response-output,
.custom-cf7-modal-form .wpcf7-response-output {
    margin: 12px 0 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 2px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.custom-cf7-hero-form .wpcf7-spinner,
.custom-cf7-offer-form .wpcf7-spinner,
.custom-cf7-modal-form .wpcf7-spinner {
    display: block !important;
    margin: 8px auto 0 auto !important;
}
