/* ============================================
   GLOBAL FINANCIAL JOURNAL - SIDEBAR FORM
   ============================================ */

/* Main Section Styling */
.gfj-sidebar-form {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form Wrapper */
.gfj-sidebar-form-wrapper {
    margin-top: 20px;
}
.wpcf7 form .recaptcha span div {

    margin: 0 auto!important;
}
/* Contact Form 7 Custom Styling */
.gfj-sidebar-cf7-form {
    max-width: 100%;
    margin: 0 auto;
}
div.wpcf7 {
    margin-top: 0 !important;
}
/* Form Row */
.gfj-sidebar-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.wpcf7 form p {
    margin: 0 !important;
}
/* Form Field */
.gfj-sidebar-form-field {
    flex: 1;
}

.gfj-sidebar-form-field.full-width {
    width: 100%;
}

/* Input Fields - Text, Email */
.gfj-sidebar-form input[type="text"],
.gfj-sidebar-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gfj-sidebar-form input[type="text"]:focus,
.gfj-sidebar-form input[type="email"]:focus {
    background-color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.gfj-sidebar-form input[type="text"]::placeholder,
.gfj-sidebar-form input[type="email"]::placeholder {
    color: #999;
}

/* Submit Button */
.gfj-sidebar-form input[type="submit"] {
    width: 100%;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.gfj-sidebar-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.gfj-sidebar-form input[type="submit"]:active {
    background: linear-gradient(135deg, #004085 0%, #003366 100%);
}

/* CF7 Validation Messages */
.gfj-sidebar-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: left;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
}

.gfj-sidebar-form .wpcf7-response-output {
    margin: 15px 0 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    border: none;
    color: black!important;
}

.gfj-sidebar-form .wpcf7-mail-sent-ok {
    background-color: rgba(40, 167, 69, 0.95);
    color: white;
    border: 2px solid #28a745;
}

.gfj-sidebar-form .wpcf7-validation-errors,
.gfj-sidebar-form .wpcf7-mail-sent-ng {
    background-color: rgba(220, 53, 69, 0.95);
    color: white;
    border: 2px solid #dc3545;
}

/* Loading Spinner */
.gfj-sidebar-form .wpcf7-spinner {
    margin: 0 8px;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .gfj-sidebar-form {
        padding: 20px;
    }

    .gfj-sidebar-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .gfj-sidebar-form input[type="text"],
    .gfj-sidebar-form input[type="email"] {
        width: 100%;
    }

    .gfj-sidebar-form input[type="submit"] {
        padding: 12px 20px;
    }
}
