/* ============================================
   Run Club Clubhouse – Page Styles
   ============================================ */

.clubhouse-wrapper {
    min-height: 60vh;
    padding: 60px 0 80px;
    background-color: #f9fafb;
}

.clubhouse-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.clubhouse-hero {
    text-align: center;
    margin-bottom: 48px;
}

.clubhouse-hero h1 {
    font-family: "roc-grotesk", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: #04132D;
    margin: 0 0 20px;
}

.clubhouse-intro {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #53585F;
    max-width: 600px;
    margin: 0 auto;
}

/* Form */
#clubhouse-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.clubhouse-field {
    margin-bottom: 24px;
}

.clubhouse-field label {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #04132D;
    margin-bottom: 8px;
}

.clubhouse-field label .required {
    color: #dc2626;
}

.clubhouse-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #04132D;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.clubhouse-input:focus {
    outline: none;
    border-color: #04132D;
    box-shadow: 0 0 0 3px rgba(4, 19, 45, 0.08);
}

.clubhouse-input::placeholder {
    color: #9ca3af;
}

/* 2 column row */
.clubhouse-row {
    display: flex;
    gap: 16px;
}

.clubhouse-row-2col > .clubhouse-field {
    flex: 1;
}

/* Club search dropdown */
.clubhouse-club-search-wrapper {
    position: relative;
}

.clubhouse-dropdown {
    position: absolute;
    top: calc(100% - 20px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.clubhouse-dropdown-loading {
    padding: 12px 16px;
    color: #9ca3af;
    font-size: 14px;
}

.clubhouse-dropdown-empty {
    padding: 12px 16px;
    color: #9ca3af;
    font-size: 14px;
}

.clubhouse-dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #04132D;
    cursor: pointer;
    transition: background-color 0.15s;
}

.clubhouse-dropdown-item:hover {
    background-color: #f3f4f6;
}

.clubhouse-field-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.4;
}

/* Error message */
.clubhouse-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Actions / Submit button */
.clubhouse-actions {
    margin-top: 8px;
}

.clubhouse-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 32px;
    height: 52px;
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.1);
    background-color: #96ff94;
    font-family: "roc-grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #04132D;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.clubhouse-submit:hover {
    background-color: #c2ff42;
}

.clubhouse-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clubhouse-submit .btn-loading {
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

/* Success state */
.clubhouse-success {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.clubhouse-success-icon {
    margin-bottom: 24px;
}

.clubhouse-success-icon svg {
    stroke: #065f46;
}

.clubhouse-success h2 {
    font-family: "roc-grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #04132D;
    margin: 0 0 12px;
}

.clubhouse-success p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #53585F;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .clubhouse-wrapper {
        padding: 40px 0 60px;
    }

    .clubhouse-hero h1 {
        font-size: 28px;
    }

    .clubhouse-intro {
        font-size: 15px;
    }

    #clubhouse-form-wrapper {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .clubhouse-row {
        flex-direction: column;
        gap: 0;
    }

    .clubhouse-success {
        padding: 60px 20px;
    }

    .clubhouse-success h2 {
        font-size: 22px;
    }
}

