/**
 * Fundraiser Form Redesign
 * Exact styles from the Fundraiser Creation Elementor mockup
 */

/* ── Wider Form Container ── */
.ssb-form-redesign .ssb-fundraiser-form-container,
.ssb-form-redesign .ssb-fundraiser-form {
    max-width: 740px !important;
}

/* ── Back Link ── */
.ssb-form-back {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid #9f76be;
    border-radius: 57px;
    font-size: 18px;
    font-weight: 400;
    color: #5f5966;
    text-decoration: none;
    margin-bottom: 1.5em;
    transition: background 0.15s, border-color 0.15s;
    font-family: 'Poppins', sans-serif;
}

.ssb-form-back:hover {
    background: #faf7fc;
    color: #714b8f;
    text-decoration: none;
}

/* ── Page Heading ── */
.ssb-form-heading {
    font-size: 48px !important;
    font-weight: 400 !important;
    color: #1e1e1e !important;
    margin: 0 0 0.3em 0 !important;
    font-family: 'Crimson Text', 'Georgia', serif !important;
}

.ssb-form-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #747474;
    margin: 0 0 2em 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

/* ── Approval Info Box ── */
.ssb-form-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f7edff;
    border: 1px solid rgba(178, 170, 185, 0.1);
    border-radius: 24px;
    margin-bottom: 2em;
}

.ssb-form-info-box__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.ssb-form-info-box__content h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #312d38 !important;
    margin: 0 0 4px 0 !important;
}

.ssb-form-info-box__content p {
    font-size: 14px;
    color: #5f5966;
    margin: 0;
    line-height: 1.5;
}

/* ── Form Card Wrapper ── */
.ssb-form-card {
    background: #fcf4ff;
    border-radius: 16px;
    padding: 2em;
    margin-bottom: 2em;
}

/* ── Form Sections ── */
.ssb-form-section {
    margin-bottom: 2em;
}

.ssb-form-section__title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #23152e !important;
    margin: 0 0 1.25em 0 !important;
    padding-left: 12px !important;
    border-left: 4px solid #714b8f !important;
    font-family: 'Crimson Text', 'Georgia', serif !important;
}

/* ── Styled Form Inputs ── */
.ssb-form-redesign .ssb-fundraiser-form-row,
.ssb-form-redesign .ssb-form-row {
    margin-bottom: 1.25em;
}

.ssb-form-redesign .ssb-fundraiser-form-row label,
.ssb-form-redesign .ssb-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #312d38;
    font-family: 'Poppins', sans-serif;
}

.ssb-form-redesign input[type="text"],
.ssb-form-redesign input[type="email"],
.ssb-form-redesign input[type="number"],
.ssb-form-redesign input[type="date"],
.ssb-form-redesign input[type="url"],
.ssb-form-redesign textarea,
.ssb-form-redesign select,
.ssb-form-redesign .input-text {
    width: 100% !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: #eee5f7 !important;
    color: #23152e !important;
    transition: box-shadow 0.15s !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

.ssb-form-redesign input::placeholder,
.ssb-form-redesign textarea::placeholder {
    color: #7a7682 !important;
}

.ssb-form-redesign input:focus,
.ssb-form-redesign textarea:focus,
.ssb-form-redesign select:focus {
    box-shadow: 0 0 0 3px rgba(159, 118, 190, 0.15) !important;
    outline: none !important;
    background: #e5d9f2 !important;
}

.ssb-form-redesign .description {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ssb-form-redesign .required {
    color: #e2401c;
}

/* ── Goal Amount with $ prefix ── */
.ssb-form-goal-wrap {
    position: relative;
}

.ssb-form-goal-wrap .ssb-form-goal-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #7a7682;
    pointer-events: none;
    z-index: 1;
}

.ssb-form-goal-wrap input {
    padding-left: 32px !important;
}

/* ── TinyMCE Override ── */
.ssb-form-redesign .wp-editor-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: none !important;
}

.ssb-form-redesign .mce-tinymce {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.ssb-form-redesign .mce-toolbar-grp {
    background: #e3d2ef !important;
    border-bottom: none !important;
}

.ssb-form-redesign .mce-edit-area {
    background: #eee5f7 !important;
}

.ssb-form-redesign .mce-edit-area iframe {
    background: #eee5f7 !important;
}

.ssb-form-redesign .wp-editor-tabs {
    float: right;
}

.ssb-form-redesign .wp-switch-editor {
    background: #e3d2ef !important;
    border: none !important;
    color: #5f5966 !important;
}

.ssb-form-redesign .wp-switch-editor.switch-html {
    background: #714b8f !important;
    color: #fff !important;
}

/* ── Submit Area ── */
.ssb-form-submit-area {
    text-align: center;
    margin-top: 2em;
}

.ssb-form-submit-area .ssb-button {
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

.ssb-form-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    font-family: 'Poppins', sans-serif;
}

.ssb-form-secure-note svg {
    opacity: 0.5;
}

/* ── Gallery dropzone override ── */
.ssb-form-redesign .ssb-gallery-upload__dropzone {
    background: #eee5f7;
    border-color: #d4c2e3;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ssb-form-card {
        padding: 1.25em;
    }

    .ssb-form-heading {
        font-size: 36px !important;
    }

    .ssb-form-section__title {
        font-size: 20px !important;
    }

    .ssb-form-back {
        font-size: 14px;
        padding: 8px 18px;
    }
}
