/* ============================================
   Club Support Plugin Styles
   ============================================ */

/* --- Variables --- */
:root {
    --cs-navy: #1B2A4A;
    --cs-gold: #C8A23C;
    --cs-gold-dark: #A8871F;
    --cs-green: #2D5A27;
    --cs-green-dark: #1E3D1A;
    --cs-white: #FFFFFF;
    --cs-light-gray: #F5F5F5;
    --cs-mid-gray: #E0E0E0;
    --cs-text: #333333;
    --cs-text-light: #666666;
    --cs-border: #D0D0D0;
    --cs-radius: 6px;
}

/* --- Reset & Container --- */
#club-support-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--cs-text);
    line-height: 1.6;
}

#club-support-wrapper *,
#club-support-wrapper *::before,
#club-support-wrapper *::after {
    box-sizing: border-box;
}

/* --- Step Headers --- */
.cs-step {
    margin-bottom: 50px;
}

.cs-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.cs-step-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--cs-navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
}

.cs-title-underline {
    width: 60px;
    height: 3px;
    background: var(--cs-gold);
    margin: 0 auto 16px;
}

.cs-step-desc {
    font-size: 15px;
    color: var(--cs-text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* --- State Selector --- */
.cs-state-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 480px;
    margin: 0 auto;
}

#cs-state-dropdown {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--cs-border);
    border-radius: var(--cs-radius);
    background: var(--cs-white);
    color: var(--cs-text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

#cs-state-dropdown:focus {
    outline: none;
    border-color: var(--cs-gold);
}

/* --- Buttons --- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--cs-radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cs-btn-gold {
    background: var(--cs-gold);
    color: var(--cs-white);
}

.cs-btn-gold:hover {
    background: var(--cs-gold-dark);
    transform: translateY(-1px);
}

.cs-btn-gold:disabled {
    background: var(--cs-mid-gray);
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.cs-btn-green {
    background: var(--cs-green);
    color: var(--cs-white);
}

.cs-btn-green:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
}

.cs-btn-outline {
    background: var(--cs-white);
    color: var(--cs-navy);
    border: 2px solid var(--cs-navy);
}

.cs-btn-outline:hover {
    background: var(--cs-navy);
    color: var(--cs-white);
    transform: translateY(-1px);
}

/* --- Association Card --- */
.cs-association-card {
    background: var(--cs-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Logo section - white bg */
.cs-card-logo-section {
    background: var(--cs-white);
    padding: 30px 40px 24px;
    text-align: center;
    border-bottom: 1px solid var(--cs-mid-gray);
}

.cs-card-logo {
    max-width: 240px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.cs-card-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cs-card-short-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--cs-navy);
    line-height: 1.1;
}

.cs-card-website-small {
    font-size: 11px;
    color: var(--cs-text-light);
    letter-spacing: 0.5px;
}

/* Name section - association color bg */
.cs-card-name-section {
    padding: 18px 40px;
    text-align: center;
}

.cs-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.3;
}

.cs-card-body {
    padding: 32px 40px;
}

.cs-card-description {
    font-size: 14px;
    color: var(--cs-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cs-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.cs-card-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--cs-text);
}

.cs-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--cs-assoc-color, var(--cs-green));
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.cs-card-tagline {
    border-top: 1px solid var(--cs-mid-gray);
    padding-top: 20px;
    margin-bottom: 24px;
}

.cs-card-tagline h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cs-navy);
    margin: 0 0 8px 0;
    font-style: italic;
}

.cs-card-tagline p {
    font-size: 13px;
    color: var(--cs-text-light);
    line-height: 1.7;
    margin: 0;
}

.cs-card-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cs-card-actions .cs-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* --- Modal --- */
.cs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cs-modal {
    background: var(--cs-white);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    animation: csModalIn 0.3s ease;
}

@keyframes csModalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--cs-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.cs-modal-close:hover {
    color: var(--cs-navy);
}

.cs-modal-header {
    margin-bottom: 28px;
}

.cs-modal-header-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cs-modal-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--cs-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.cs-modal-header-text {
    flex: 1;
}

.cs-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--cs-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.cs-modal-desc {
    font-size: 14px;
    color: var(--cs-text-light);
    margin: 0;
    line-height: 1.5;
}

.cs-modal-divider {
    height: 1px;
    background: var(--cs-mid-gray);
    margin-top: 20px;
}

/* --- Form Styles --- */
.cs-form-row {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #EBEBEB;
}

.cs-form-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cs-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cs-form-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.cs-form-group {
    display: flex;
    flex-direction: column;
}

.cs-form-group.cs-full {
    width: 100%;
}

.cs-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.cs-required {
    color: #c0392b;
}

.cs-form-group input[type="text"],
.cs-form-group input[type="email"],
.cs-form-group input[type="tel"],
.cs-form-group select,
.cs-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid var(--cs-mid-gray);
    border-radius: var(--cs-radius);
    background: var(--cs-white);
    color: var(--cs-text);
    transition: border-color 0.2s;
    font-family: inherit;
}

.cs-form-group input:focus,
.cs-form-group select:focus,
.cs-form-group textarea:focus {
    outline: none;
    border-color: var(--cs-gold);
}

.cs-field-hint {
    font-size: 12px;
    color: var(--cs-text-light);
    font-style: italic;
    margin: 4px 0 0;
}

.cs-hint-span2 {
    grid-column: 1 / -1;
}

.cs-form-group input.cs-error,
.cs-form-group select.cs-error {
    border-color: #c0392b;
}

.cs-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.cs-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Checkbox Grid --- */
.cs-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.cs-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--cs-text);
    cursor: pointer;
}

.cs-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cs-navy);
}

.cs-checkbox-other {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cs-checkbox-other input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 6px 10px;
    font-size: 13px;
    border: 2px solid var(--cs-mid-gray);
    border-radius: var(--cs-radius);
    transition: border-color 0.2s;
}

.cs-checkbox-other input[type="text"]:disabled {
    background: var(--cs-light-gray);
    cursor: not-allowed;
}

.cs-checkbox-other input[type="text"]:focus {
    outline: none;
    border-color: var(--cs-gold);
}

/* --- Form Footer --- */
.cs-required-note {
    font-size: 12px;
    color: #c0392b;
    margin: 24px 0 16px;
    padding-top: 16px;
    border-top: 1px solid #EBEBEB;
}

.cs-btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 8px;
}

.cs-arrow {
    font-size: 18px;
}

.cs-form-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--cs-text-light);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cs-lock-icon {
    font-size: 14px;
    line-height: 1;
}

/* --- Success Message --- */
.cs-success-message {
    text-align: center;
    padding: 40px 20px;
}

.cs-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cs-green);
    color: var(--cs-white);
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cs-success-message h3 {
    font-size: 22px;
    color: var(--cs-navy);
    margin: 0 0 10px;
}

.cs-success-message p {
    color: var(--cs-text-light);
    margin: 0 0 24px;
}

/* --- Loading spinner --- */
.cs-btn-submit.cs-loading {
    pointer-events: none;
    opacity: 0.7;
}

.cs-btn-submit.cs-loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--cs-white);
    border-radius: 50%;
    animation: csSpin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes csSpin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    #club-support-wrapper {
        padding: 10px;
    }

    .cs-step-title {
        font-size: 22px;
    }

    .cs-modal {
        padding: 24px;
    }

    .cs-modal-header-row {
        gap: 12px;
    }

    .cs-modal-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .cs-modal-title {
        font-size: 18px;
    }

    .cs-form-row-2col,
    .cs-form-row-3col {
        grid-template-columns: 1fr;
    }

    .cs-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-card-body {
        padding: 24px;
    }

    .cs-card-logo-section {
        padding: 20px;
    }

    .cs-card-name-section {
        padding: 14px 20px;
    }

    .cs-card-name {
        font-size: 16px;
    }

    .cs-card-actions .cs-btn {
        min-width: 100%;
    }
}
