/**
 * Submit Your Story Page Styles
 *
 * Styling for the story submission page with frosted glass cards
 * matching FFoA design system
 *
 * @package FFOA_Custom
 * @since 1.2.0
 */

/* ============================================================
   PAGE BACKGROUND
   ============================================================ */

.page-submit-story {
    background-color: #1a2340 !important;
    background-image: url('../images/Gemini_Generated_Image_m9ub24m9ub24m9ub.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.submit-story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ============================================================
   STORY HEADER
   ============================================================ */

.story-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background: rgba(34, 46, 81, 0.75);
    margin: 0 -1.5rem 2rem;
    color: #ffffff;
}

.story-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.story-subtitle {
    font-size: 1.375rem;
    color: #C2B97F;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Responsive Header */
@media (max-width: 768px) {
    .story-header {
        padding: 2rem 1rem;
    }

    .story-title {
        font-size: 2rem;
    }

    .story-subtitle {
        font-size: 1.125rem;
    }
}

/* ============================================================
   STORY INTRO
   ============================================================ */

.story-intro {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-intro p {
    font-size: 1.0625rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.story-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   PRIVACY NOTE
   ============================================================ */

.story-privacy-note {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-left: 4px solid #06A77D;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.privacy-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.privacy-content {
    flex-grow: 1;
}

.privacy-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 0.75rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.privacy-content p {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.6;
    font-family: Georgia, serif;
    margin: 0;
}

@media (max-width: 640px) {
    .story-privacy-note {
        flex-direction: column;
        padding: 1.5rem 1.75rem;
        gap: 1rem;
    }

    .privacy-icon {
        font-size: 2rem;
    }
}

/* ============================================================
   STORY EXAMPLES
   ============================================================ */

.story-examples {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.examples-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 2rem;
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   EXAMPLE ITEMS
   ============================================================ */

.example-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(194, 185, 127, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(34, 46, 81, 0.15);
    border-color: #C2B97F;
    background: rgba(255, 255, 255, 0.65);
}

.example-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.example-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222E51;
    margin-bottom: 0.5rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.example-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    font-family: Georgia, serif;
    margin: 0;
}

/* ============================================================
   STORY FORM SECTION
   ============================================================ */

.story-form-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.form-section-intro {
    font-size: 1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
    font-family: Georgia, serif;
}

.story-form-container {
    /* Form styling will be handled by the form plugin/shortcode */
    /* This container provides spacing and context */
}

@media (max-width: 768px) {
    .story-form-section {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================
   STORY IMPACT
   ============================================================ */

.story-impact {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.impact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.story-impact > p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-family: Georgia, serif;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list li {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.6;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-family: Georgia, serif;
}

.impact-list li:last-child {
    margin-bottom: 0;
}

.impact-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #06A77D;
    font-weight: 700;
    font-size: 1.125rem;
}

/* ============================================================
   OTHER WAYS TO HELP
   ============================================================ */

.other-ways-to-help {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.other-ways-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1.5rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.other-ways-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.other-way-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #C2B97F;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.other-way-link:hover {
    background: #222E51;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 46, 81, 0.25);
    color: #ffffff;
}

.other-way-link:focus {
    outline: 2px solid #C2B97F;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .other-ways-links {
        flex-direction: column;
        gap: 1rem;
    }

    .other-way-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   STORY FORM
   ============================================================ */

.ffoa-story-form .form-section {
    margin-bottom: 2rem;
}

.ffoa-story-form .form-section-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(194, 185, 127, 0.4);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.ffoa-story-form .form-row {
    margin-bottom: 1.25rem;
}

.ffoa-story-form .form-row:last-child {
    margin-bottom: 0;
}

.ffoa-story-form .form-field {
    margin-bottom: 1rem;
}

.ffoa-story-form .form-field label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.ffoa-story-form .required {
    color: #c0392b;
    margin-left: 2px;
}

.ffoa-story-form input[type="text"],
.ffoa-story-form input[type="email"],
.ffoa-story-form input[type="number"],
.ffoa-story-form input[type="tel"],
.ffoa-story-form select,
.ffoa-story-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: Georgia, serif;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ffoa-story-form input:focus,
.ffoa-story-form select:focus,
.ffoa-story-form textarea:focus {
    outline: none;
    border-color: #06A77D;
    box-shadow: 0 0 0 3px rgba(6, 167, 125, 0.15);
}

.ffoa-story-form .field-note {
    display: block;
    font-size: 0.8125rem;
    color: #777;
    margin-top: 0.375rem;
    font-family: Georgia, serif;
    line-height: 1.4;
}

/* Half-width fields side by side */
@media (min-width: 641px) {
    .ffoa-story-form .form-row:has(.form-field-half) {
        display: flex;
        gap: 1.25rem;
    }

    .ffoa-story-form .form-field-half {
        flex: 1;
    }
}

/* Checkbox field */
.ffoa-story-form .form-field-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.ffoa-story-form .form-field-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.ffoa-story-form .checkbox-label {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.5;
    font-family: Georgia, serif;
}

/* ============================================================
   TINYMCE EDITOR
   ============================================================ */

.ffoa-story-form #wp-story_content-wrap {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
}

.ffoa-story-form .mce-toolbar-grp {
    background: rgba(245, 245, 245, 0.95) !important;
    border-bottom: 1px solid #ddd !important;
}

.ffoa-story-form #wp-story_content-wrap.field-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

/* ============================================================
   CAPTCHA
   ============================================================ */

.ffoa-story-form .captcha-field {
    background: rgba(6, 167, 125, 0.06);
    border: 1px solid rgba(6, 167, 125, 0.2);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.ffoa-story-form .captcha-field input[type="number"] {
    max-width: 160px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.ffoa-story-form .form-actions {
    margin-top: 2rem;
    text-align: center;
}

.ffoa-story-form .form-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #222E51;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(34, 46, 81, 0.25);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.ffoa-story-form .form-submit-button:hover {
    background: #C2B97F;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(194, 185, 127, 0.3);
}

.ffoa-story-form .form-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SUCCESS / ERROR MESSAGES
   ============================================================ */

.ffoa-story-message {
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
}

.ffoa-story-message p {
    margin: 0;
}

.ffoa-story-message.success {
    background: rgba(6, 167, 125, 0.1);
    border: 2px solid #06A77D;
    color: #065f46;
}

.ffoa-story-message.error {
    background: rgba(192, 57, 43, 0.08);
    border: 2px solid #c0392b;
    color: #7f1d1d;
}

/* Field-level error highlighting */
.ffoa-story-form .field-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .submit-story-container {
        padding: 1.5rem 1rem 3rem;
    }

    .story-intro,
    .story-examples,
    .story-form-section,
    .story-impact,
    .other-ways-to-help {
        padding: 1.5rem 1.5rem;
    }

    .ffoa-story-form .form-submit-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ffoa-story-form .captcha-field {
        padding: 1rem 1.25rem;
    }

    .ffoa-story-form .captcha-field input[type="number"] {
        max-width: 100%;
    }
}
