/* Public styles for Custom Registrations plugin. */
.raffle-auth-form {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.raffle-auth-form__header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.raffle-auth-form__logo {
    margin-bottom: 0.75rem;
}

.raffle-auth-form__logo img {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

.raffle-auth-form__title {
    margin: 0;
    font-family: "Mulish", Sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #003366;
}

.raffle-auth-form__errors {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    background-color: #fee2e2;
    color: #7f1d1d;
}

.raffle-auth-form__errors ul {
    list-style: disc;
    margin: 0 0 0 1.25rem;
    padding: 0;
}

.raffle-auth-form__form {
    display: block;
}

.raffle-auth-form__field {
    margin-bottom: 1.25rem;
}

.raffle-auth-form__field label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.raffle-registration-form__field--checkbox label,
.raffle-login-form__field--checkbox label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-weight: 500;
}

.raffle-auth-form__field input[type="text"],
.raffle-auth-form__field input[type="email"],
.raffle-auth-form__field input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    background-color: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.raffle-auth-form__field input[type="text"]:focus,
.raffle-auth-form__field input[type="email"]:focus,
.raffle-auth-form__field input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background-color: #ffffff;
}

.raffle-auth-form__actions {
    margin-top: 1.5rem;
}

.raffle-login-form__forgot-password {
    margin-top: 1rem;
    text-align: center;
}

.raffle-login-form__forgot-password-link {
    color: #003366;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.raffle-login-form__forgot-password-link:hover,
.raffle-login-form__forgot-password-link:focus {
    color: #002244;
    text-decoration: underline;
}

.raffle-login-form__forgot-password-link:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.raffle-auth-form__submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.raffle-auth-form__submit:hover,
.raffle-auth-form__submit:focus {
    background-color: #1d4ed8;
}

.raffle-auth-form__submit:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .raffle-auth-form {
        padding: 1.5rem;
    }

    .raffle-auth-form__title {
        font-size: 32px;
    }
}

.raffle-dashboard {
    margin: 3rem auto;
    max-width: 1100px;
    padding: 0 1.5rem 3rem;
}

.raffle-dashboard__hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.08));
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    color: inherit;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

.raffle-dashboard__hero-copy {
    max-width: 500px;
}

.raffle-dashboard__hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(17, 24, 39, 0.7);
}

.raffle-dashboard__hero-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
}

.raffle-dashboard__hero-lead {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.6;
}

.raffle-dashboard__hero-greeting {
    margin: 1.25rem 0 0;
    font-weight: 600;
    color: #1f2937;
}

.raffle-dashboard__hero-summary {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.raffle-dashboard__summary-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.raffle-dashboard__summary-card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 600;
}

.raffle-dashboard__summary-card-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.raffle-dashboard__tabs {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.raffle-dashboard__tab-button {
    background: transparent;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.65);
    cursor: pointer;
    border-radius: 999px 999px 0 0;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.raffle-dashboard__tab-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.raffle-dashboard__tab-button.is-active,
.raffle-dashboard__tab-button:hover {
    color: #0f172a;
}

.raffle-dashboard__tab-button.is-active::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.raffle-dashboard__panels {
    margin-top: 2rem;
}

.raffle-dashboard__panel {
    display: block;
}

.raffle-dashboard__panel[hidden] {
    display: none;
}

.raffle-dashboard__panel-inner {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 2.25rem;
}

.raffle-dashboard__panel-card {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.75rem;
    background: rgba(249, 250, 251, 0.85);
}

.raffle-dashboard__panel-card + .raffle-dashboard__panel-card {
    margin-top: 1.5rem;
}

.raffle-dashboard__panel-lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.75);
}

.raffle-dashboard__referral-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.raffle-dashboard__referral-input {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: #ffffff;
    font-size: 0.95rem;
}

.raffle-dashboard__referral-copy {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.raffle-dashboard__referral-copy:hover,
.raffle-dashboard__referral-copy:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
    outline: none;
}

.raffle-dashboard__referral-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.raffle-dashboard__referral-stat {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background-color: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.raffle-dashboard__referral-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(37, 99, 235, 0.85);
    font-weight: 600;
}

.raffle-dashboard__referral-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.raffle-dashboard__panel-card--rewards {
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .raffle-dashboard {
        padding: 0 1rem 2.5rem;
    }

    .raffle-dashboard__hero {
        padding: 2rem;
    }

    .raffle-dashboard__hero-title {
        font-size: 2rem;
    }

    .raffle-dashboard__panel-inner {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .raffle-dashboard__tab-button {
        flex: 1 1 100%;
        text-align: left;
    }

    .raffle-dashboard__panel-inner {
        padding: 1.5rem;
    }

    .raffle-dashboard__panel-card {
        padding: 1.25rem;
    }
}

/* Jet Form Builder Styles for Modern UI */
.jet-form-builder {
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jet-form-builder-row {
    margin-bottom: 1.5rem;
}

.jet-form-builder__label {
    margin-bottom: 0.5rem;
}

.jet-form-builder__label-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.jet-form-builder__required {
    color: #dc2626;
}

.jet-form-builder__field-wrap {
    position: relative;
}

.jet-form-builder__field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.jet-form-builder__field:focus {
    outline: 0;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.jet-form-builder__field.text-field {
    box-sizing: border-box;
}

.jet-form-builder__field[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.jet-form-builder__fields-group {
    margin-top: 0.5rem;
}

.checkboxes-wrap {
    display: flex;
    align-items: flex-start;
}

.jet-form-builder__field-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
    cursor: pointer;
}

.jet-form-builder__field-label input[type="checkbox"] {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.jet-form-builder__action-button-wrapper {
    margin-top: 1.5rem;
}

.jet-form-builder__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #5ce1e6;
    color: #003366;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.jet-form-builder__submit:hover {
    background-color: #4dd0d4;
}

.jet-form-builder__submit:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.1);
}

.jet-form-builder__submit:active {
    transform: translateY(1px);
}

.jet-form-builder__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Layout adjustments */
.layout-column .jet-form-builder-row {
    display: block;
}

.layout-column .jet-form-builder__field-wrap {
    width: 100%;
}

/* Responsive design */
@media (max-width: 640px) {
    .jet-form-builder {
        padding: 0 1rem;
    }

    .jet-form-builder__submit {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* Light blue background wrapper */
.raffle-form-body-wrapper {
    background-color: #f0f4ff;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive wrapper */
@media (max-width: 640px) {
    .raffle-form-body-wrapper {
        padding: 1.5rem;
    }
}
