/* =========================================
   FOCUS360 NEWSLETTER FORM
   ========================================= */

.custom-subscribe-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
    max-width: 273px;
    height: 37px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Remove CF7 generated spacing */
.custom-subscribe-form p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Email wrapper */
.custom-subscribe-form .wpcf7-form-control-wrap {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Email input */
.custom-subscribe-form input[type="email"] {
    display: block !important;
    width: 100% !important;
    height: 37px !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 16px !important;

    border: none !important;
    border-radius: 0 !important;
    outline: none !important;

    background: #1a1a1a !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;

    box-shadow: none !important;
}

/* Placeholder */
.custom-subscribe-form input[type="email"]::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

/* Subscribe button */
.custom-subscribe-form input[type="submit"] {
    flex: 0 0 90px !important;

    width: 90px !important;
    height: 37px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;
    outline: none !important;

    background: #ff4d00 !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;

    text-align: center !important;
    cursor: pointer !important;

    box-shadow: none !important;
}

/* Hover */
.custom-subscribe-form input[type="submit"]:hover {
    background: #e64500 !important;
}

/* Remove CF7 validation space */
.custom-subscribe-form .wpcf7-not-valid-tip {
    display: none !important;
}

.custom-subscribe-form .wpcf7-response-output {
    display: none !important;
}

/* CF7 spinner */
.custom-subscribe-form .wpcf7-spinner {
    display: none !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .custom-subscribe-form {
        max-width: 273px;
        height: 37px;
    }

    .custom-subscribe-form input[type="email"] {
        height: 37px !important;
        font-size: 12px !important;
        padding: 0 14px !important;
    }

    .custom-subscribe-form input[type="submit"] {
        flex-basis: 90px !important;
        width: 90px !important;
        height: 37px !important;
        font-size: 12px !important;
    }
}



/*/////////////////// 
CONTACT FORM 
///////////////////*/


/* --- Custom Contact Form 7 Styling (Pixel Perfect, Final Code) --- */

.custom-orange-form {
    max-width: 100%;
    font-family: inherit;
    width: 100%;
}

/* Spacing between fields */
.custom-orange-form .cf7-field {
    margin-bottom: 25px;
}

/* Hide auto-generated br tags from Contact Form 7 to prevent extra gaps */
.custom-orange-form .cf7-field br {
    display: none !important;
}

/* Orange Label Styling - Perfect Gap */
.custom-orange-form .cf7-label {
    display: block;
    color: #e5531d; 
    font-weight: 500;
    margin-bottom: 10px !important; 
    padding-bottom: 0px !important;
    line-height: 1.2; 
    font-size: 13px; 
}

/* Base Input and Textarea Styling - NO OUTLINE, RIGHT & BOTTOM SHADOW ONLY */
.custom-orange-form input[type="text"],
.custom-orange-form input[type="email"],
.custom-orange-form textarea {
    width: 100%;
    margin-top: 0px !important; 
    padding: 16px 20px;
    border: 1px solid transparent; 
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 6px 6px 15px -2px rgba(0, 0, 0, 0.25); 
    font-size: 15px; 
    color: #333;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Height for Top 3 Inputs */
.custom-orange-form input[type="text"],
.custom-orange-form input[type="email"] {
    height: 58px; 
}

/* Specific Height for Messages Box */
.custom-orange-form textarea {
    height: 120px; 
    resize: vertical;
}

/* Placeholder Text Styling - Reduced Size */
.custom-orange-form input::placeholder,
.custom-orange-form textarea::placeholder {
    color: #c4c4c4;
    font-weight: 400;
    font-size: 13px; 
}

/* Active/Focus State - ORANGE BORDER (#FD4A01) ON CLICK */
.custom-orange-form input[type="text"]:focus,
.custom-orange-form input[type="email"]:focus,
.custom-orange-form textarea:focus {
    outline: none !important; 
    border: 1px solid #FD4A01 !important; 
    box-shadow: 8px 8px 18px -2px rgba(0, 0, 0, 0.35) !important; 
}

/* Strict Right-align for the submit button wrapper */
.custom-orange-form .cf7-submit-wrapper {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    margin-top: 15px;
    position: relative;
    width: 100%;
}

/* Fix: Prevent CF7 loading spinner from pushing the button to the left */
.custom-orange-form .wpcf7-spinner {
    position: absolute !important;
    right: -35px !important; 
}

/* Send Button Styling */
.custom-orange-form input[type="submit"] {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 70px; 
    font-size: 20px; 
    font-weight: 600; /* Text thoda aur bold kar diya (500 se 700) */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 !important; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-orange-form input[type="submit"]:hover {
    background-color: #333333;
}

/* ========================================= */
/* --- ? MOBILE RESPONSIVE MEDIA QUERY --- */
/* ========================================= */

@media screen and (max-width: 768px) {
    .custom-orange-form .cf7-field {
        margin-bottom: 20px;
    }
    
    .custom-orange-form input[type="text"],
    .custom-orange-form input[type="email"] {
        height: 50px; 
        padding: 14px 16px;
        font-size: 14px;
    }

    .custom-orange-form textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .custom-orange-form .cf7-label {
        font-size: 12px;
        margin-bottom: 8px !important; 
    }

    .custom-orange-form input::placeholder,
    .custom-orange-form textarea::placeholder {
        font-size: 12px; 
    }
    
    .custom-orange-form input[type="submit"] {
        padding: 12px 50px;
        font-size: 18px;
    }
}