/* ============================================
   GLOBAL FINANCIAL JOURNAL - NEWSLETTER SECTION
   ============================================ */

/* Main Section Styling */
.gfj-newsletter-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-image: url("/wp-content/uploads/2026/01/bgpaper.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    overflow: hidden;
}

/* Container */
.gfj-newsletter-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

/* Logo/Icon */
.gfj-logo {
    margin-bottom: 30px;
}

.gfj-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Title */
.gfj-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form Wrapper */
.gfj-form-wrapper {
    margin-top: 30px;
}

/* Contact Form 7 Custom Styling */
.gfj-cf7-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Form Row */
.gfj-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* Form Field */
.gfj-form-field {
    flex: 1;
}

.gfj-form-field.full-width {
    width: 100%;
}

/* Input Fields - Text, Email */
.gfj-newsletter-section input[type="text"],
.gfj-newsletter-section input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gfj-newsletter-section input[type="text"]:focus,
.gfj-newsletter-section input[type="email"]:focus {
    background-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.gfj-newsletter-section input[type="text"]::placeholder,
.gfj-newsletter-section input[type="email"]::placeholder,
.gfj-newsletter-section textarea::placeholder {
    color: #999;
}

/* Textarea */
.gfj-newsletter-section textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
}

.gfj-newsletter-section textarea:focus {
    background-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Submit Button */
.gfj-newsletter-section input[type="submit"] {
    width: 100%;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5c4033 0%, #3d2817 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gfj-newsletter-section input[type="submit"]:hover {
    background: linear-gradient(135deg, #4a3428 0%, #3d2817 100%);
}

.gfj-newsletter-section input[type="submit"]:active {
    background: linear-gradient(135deg, #4a3428 0%, #2d1f12 100%);
}

/* Override theme .wpcf7-submit:hover */
.gfj-newsletter-section .wpcf7-submit:hover {
    background: linear-gradient(135deg, #4a3428 0%, #3d2817 100%) !important;
    border: none !important;
}

/* CF7 Validation Messages */
.gfj-newsletter-section .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    text-align: left;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

.gfj-newsletter-section .wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    border: none;
    color: white !important;
}

.gfj-newsletter-section .wpcf7-mail-sent-ok {
    background-color: rgba(76, 175, 80, 0.95);
    color: white !important;
    border: 2px solid #4caf50;
}

.gfj-newsletter-section .wpcf7-validation-errors,
.gfj-newsletter-section .wpcf7-mail-sent-ng {
    background-color: rgba(244, 67, 54, 0.95);
    color: white !important;
    border: 2px solid #f44336;
}

/* Loading Spinner */
.gfj-newsletter-section .wpcf7-spinner {
    margin: 0 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gfj-newsletter-section {
        min-height: 400px;
        padding: 60px 20px;
    }

    .gfj-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .gfj-logo img {
        width: 60px;
        height: 60px;
    }

    .gfj-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .gfj-newsletter-section input[type="text"],
    .gfj-newsletter-section input[type="email"],
    .gfj-newsletter-section textarea {
        width: 100%;
    }

    .gfj-newsletter-section input[type="submit"] {
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .gfj-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .gfj-newsletter-section input[type="text"],
    .gfj-newsletter-section input[type="email"],
    .gfj-newsletter-section textarea,
    .gfj-newsletter-section input[type="submit"] {
        font-size: 14px;
        padding: 14px 18px;
    }

    .gfj-newsletter-section textarea {
        min-height: 100px;
    }
}

/* Alternative: Full Width Layout */
.gfj-newsletter-section.full-width {
    min-height: 600px;
}

.gfj-newsletter-section.full-width .gfj-newsletter-container {
    max-width: 800px;
}

.gfj-newsletter-section.full-width .gfj-title {
    font-size: 56px;
    margin-bottom: 50px;
}

/* Dark Variant (Even Darker) */
.gfj-newsletter-section.dark::before {
    background: rgba(0, 0, 0, 0.85);
}
