﻿/* =========================================================
   Gedian Sports - Coach Sign Up
   ========================================================= */

.coach-signup-page {
    min-height: calc(100vh - 80px);
    padding: 34px 14px 60px;
    background: radial-gradient(circle at top right, rgba(91, 140, 59, 0.12), transparent 34%), linear-gradient(180deg, #f4f8f2 0%, #eef3f7 100%);
    color: #071a33;
    font-family: "Tajawal", sans-serif;
}

.coach-signup-box {
    width: min(980px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dde6dc;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(7, 26, 51, 0.12);
}

.coach-signup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #071a33 0%, #0b2d57 65%, #174876 100%);
}

    .coach-signup-header h1 {
        margin: 4px 0 8px;
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        font-weight: 900;
    }

    .coach-signup-header p {
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        line-height: 1.8;
    }

.coach-signup-kicker {
    display: inline-flex;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.coach-signup-header > a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: 0.2s ease;
}

    .coach-signup-header > a:hover {
        border-color: #ffffff;
        background: #ffffff;
        color: #071a33;
    }

.coach-signup-box form {
    padding: 28px 34px 34px;
}

.signup-validation-summary {
    margin-bottom: 22px;
    padding: 14px 17px;
    border: 1px solid #f4b8bc;
    border-radius: 14px;
    background: #fff1f2;
    color: #a51d2d;
    line-height: 1.7;
}

    .signup-validation-summary:empty,
    .signup-validation-summary ul:empty {
        display: none;
    }

    .signup-validation-summary ul {
        margin: 0;
        padding-right: 20px;
    }

.signup-form-section {
    padding: 26px 0;
    border-bottom: 1px solid #e7ede6;
}

    .signup-form-section:first-of-type {
        padding-top: 4px;
    }

    .signup-form-section:last-of-type {
        border-bottom: 0;
    }

.signup-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

    .signup-section-heading > span {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #eaf3e5;
        color: #4d7d31;
        font-weight: 900;
    }

    .signup-section-heading h2 {
        margin: 0 0 4px;
        color: #071a33;
        font-size: 1.05rem;
        font-weight: 900;
    }

    .signup-section-heading p {
        margin: 0;
        color: #7b8796;
        font-size: 0.84rem;
        line-height: 1.6;
    }

.signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.signup-grid-full {
    grid-column: 1 / -1;
}

.form-field {
    min-width: 0;
}

    .form-field label {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 8px;
        color: #172b45;
        font-size: 0.86rem;
        font-weight: 800;
    }

        .form-field label small {
            color: #8a96a5;
            font-size: 0.7rem;
            font-weight: 600;
        }

.coach-signup-page .form-control,
.coach-signup-page .form-select {
    min-height: 48px;
    border: 1px solid #d9e2dd;
    border-radius: 13px;
    background-color: #fbfcfb;
    color: #071a33;
    font-size: 0.92rem;
    box-shadow: none;
}

    .coach-signup-page .form-control:focus,
    .coach-signup-page .form-select:focus {
        border-color: #5b8c3b;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(91, 140, 59, 0.12);
    }

.field-validation-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #c22f3e;
    font-size: 0.75rem;
    font-weight: 700;
}

.input-validation-error {
    border-color: #d84b59 !important;
    background: #fffafa !important;
}

.club-picker-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.club-search-button {
    min-width: 120px;
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    background: #071a33;
    color: #ffffff;
    font-weight: 900;
    transition: 0.2s ease;
}

    .club-search-button:hover:not(:disabled) {
        transform: translateY(-1px);
        background: #0b2d57;
    }

    .club-search-button:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

.club-input-disabled {
    background: #eef1f3 !important;
    color: #7a8694 !important;
}

.signup-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.signup-check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 84px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dde6dc;
    border-radius: 15px;
    background: #fbfcfb;
    cursor: pointer;
    transition: 0.2s ease;
}

    .signup-check-card:hover {
        border-color: #a9c39a;
        background: #f6faf4;
    }

    .signup-check-card .form-check-input {
        flex: 0 0 auto;
        width: 19px;
        height: 19px;
        margin: 2px 0 0;
    }

        .signup-check-card .form-check-input:checked {
            border-color: #5b8c3b;
            background-color: #5b8c3b;
        }

    .signup-check-card span {
        display: block;
    }

    .signup-check-card strong {
        display: block;
        margin-bottom: 4px;
        color: #172b45;
        font-size: 0.88rem;
    }

    .signup-check-card small {
        display: block;
        color: #7d8997;
        font-size: 0.75rem;
        line-height: 1.6;
    }

.signup-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #dce8d7;
    border-radius: 17px;
    background: #f5faf2;
}

    .signup-submit-area p {
        max-width: 590px;
        margin: 0;
        color: #657386;
        font-size: 0.8rem;
        line-height: 1.7;
    }

.coach-signup-button {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 13px;
    background: #5b8c3b;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(91, 140, 59, 0.24);
    transition: 0.2s ease;
}

    .coach-signup-button:hover {
        transform: translateY(-2px);
        background: #4c7a31;
    }

.coach-signup-footer {
    padding: 19px 34px;
    border-top: 1px solid #e6ece5;
    background: #fafcfa;
    color: #6e7a89;
    text-align: center;
    font-size: 0.84rem;
}

    .coach-signup-footer a {
        color: #4f7f32;
        font-weight: 900;
        text-decoration: none;
    }

.club-search-modal {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(7, 26, 51, 0.22);
}

    .club-search-modal .modal-header {
        padding: 20px 22px;
        border-bottom-color: #e7ecef;
        background: #071a33;
        color: #ffffff;
    }

    .club-search-modal .modal-title {
        font-size: 1.1rem;
        font-weight: 900;
    }

    .club-search-modal .btn-close {
        margin: 0;
        filter: invert(1);
    }

    .club-search-modal .modal-body {
        padding: 22px;
    }

.club-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 19px;
}

    .club-filter-row label {
        display: block;
        margin-bottom: 7px;
        color: #172b45;
        font-size: 0.82rem;
        font-weight: 800;
    }

.club-table-wrapper {
    overflow: auto;
    max-height: 390px;
    border: 1px solid #e0e7e3;
    border-radius: 14px;
}

.club-search-table {
    margin: 0;
    vertical-align: middle;
}

    .club-search-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 13px 15px;
        border-bottom: 0;
        background: #eef4eb;
        color: #28421a;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .club-search-table tbody td {
        padding: 14px 15px;
        border-color: #edf1ee;
        color: #304157;
        font-size: 0.82rem;
    }

.club-result-row {
    cursor: pointer;
    transition: 0.15s ease;
}

    .club-result-row:hover,
    .club-result-row:focus {
        outline: none;
        background: #f1f7ee;
    }

.club-search-message {
    padding: 34px !important;
    color: #84909d !important;
    text-align: center;
}

@media (max-width: 767.98px) {
    .coach-signup-page {
        padding: 14px 8px 34px;
    }

    .coach-signup-box {
        border-radius: 18px;
    }

    .coach-signup-header {
        flex-direction: column;
        padding: 25px 20px;
    }

    .coach-signup-box form {
        padding: 22px 18px 28px;
    }

    .signup-grid,
    .signup-options-grid,
    .club-filter-row {
        grid-template-columns: 1fr;
    }

    .signup-grid-full {
        grid-column: auto;
    }

    .signup-submit-area {
        align-items: stretch;
        flex-direction: column;
    }

    .coach-signup-button {
        width: 100%;
    }

    .club-picker-input {
        grid-template-columns: 1fr;
    }

    .club-search-button {
        min-height: 46px;
    }
}
