/* =========================================================
   ADD MATCH PAGE
   NIT NAGALAND VOLLEYBALL
   ========================================================= */

.add-match-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 35px 65px;
}


/* =========================================================
   HEADER
   ========================================================= */

.add-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e2e8ef;
}

.add-match-header .section-label {
    display: block;

    margin-bottom: 8px;

    color: #e45b3c;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.4px;
}

.add-match-header h1 {
    margin: 0;

    color: #153b60;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.2;
}

.add-match-header p {
    margin: 8px 0 0;

    color: #718197;

    font-size: 15px;
}

.volleyball-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-left: 25px;

    background: #eef5fc;

    border: 1px solid #d7e5f2;
    border-radius: 14px;

    font-size: 31px;

    box-shadow: 0 4px 12px rgba(30, 70, 110, 0.07);
}


/* =========================================================
   ERROR
   ========================================================= */

.add-match-page .error-message {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-bottom: 22px;
    padding: 14px 17px;

    color: #9d303b;

    background: #fff5f5;

    border: 1px solid #efced2;
    border-left: 4px solid #c83c4a;

    border-radius: 8px;

    font-size: 13px;
}

.add-match-page .error-message strong {
    font-size: 14px;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.add-match-card {
    background: #ffffff;

    border: 1px solid #dfe7ef;
    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(24, 55, 85, 0.07);

    overflow: hidden;
}

.add-match-card form {
    width: 100%;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.form-section {
    padding: 27px 31px;

    border-bottom: 1px solid #e8edf2;
}

.form-section:last-child {
    border-bottom: none;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.form-section-title {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 21px;
}

.form-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    color: #ffffff;

    background: #153f66;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

.form-section-title h2 {
    margin: 0;

    color: #244866;

    font-size: 18px;
    font-weight: 800;
}

.form-section-title p {
    margin: 4px 0 0;

    color: #8290a0;

    font-size: 12px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #304e69;

    font-size: 13px;
    font-weight: 750;
}

.form-group label span {
    color: #d34a43;

    margin-left: 2px;
}


/* =========================================================
   INPUTS / SELECTS
   ========================================================= */

.form-group input,
.form-group select {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    box-sizing: border-box;

    color: #294966;

    background: #fbfcfe;

    border: 1px solid #d5dfe8;
    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-group input::placeholder {
    color: #9aa8b6;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #b8c8d8;
}

.form-group input:focus,
.form-group select:focus {
    background: #ffffff;

    border-color: #4380bb;

    box-shadow:
        0 0 0 3px rgba(67, 128, 187, .10);
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: #8b99a8;

    font-size: 11px;
}


/* =========================================================
   TEAMS
   ========================================================= */

.teams-grid {
    display: grid;

    grid-template-columns: 1fr 65px 1fr;

    align-items: end;

    gap: 18px;
}

.vs-box {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 0;

    color: #ffffff;

    background: #173e65;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .8px;

    box-shadow:
        0 5px 13px rgba(23, 62, 101, .18);
}


/* =========================================================
   SCHEDULE / DETAILS
   ========================================================= */

.schedule-grid,
.details-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* =========================================================
   FORM FOOTER
   ========================================================= */

.form-footer {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 13px;

    padding: 22px 31px;

    background: #fafbfd;

    border-top: 1px solid #e6ebf0;
}


/* =========================================================
   CANCEL
   ========================================================= */

.cancel-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 95px;
    height: 43px;

    padding: 0 17px;

    box-sizing: border-box;

    color: #5e7184 !important;

    background: #ffffff;

    border: 1px solid #d5dfe8;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    transition: .2s ease;
}

.cancel-button:hover {
    color: #294966 !important;

    background: #f2f5f8;

    border-color: #c3d0dc;
}


/* =========================================================
   CREATE BUTTON
   ========================================================= */

.create-match-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 160px;
    height: 43px;

    padding: 0 19px;

    color: #ffffff;

    background: #125fc4;

    border: 1px solid #125fc4;
    border-radius: 8px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(18, 95, 196, .17);

    transition: .2s ease;
}

.create-match-button:hover {
    background: #0d4fa8;

    border-color: #0d4fa8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 17px rgba(18, 95, 196, .23);
}

.create-match-button span {
    font-size: 16px;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.add-match-page .back-section {
    margin-top: 22px;

    text-align: center;
}

.add-match-page .back-button {
    color: #6b7d90;

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    transition: color .2s ease;
}

.add-match-page .back-button:hover {
    color: #125fc4;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .add-match-page {
        padding: 35px 22px 55px;
    }

    .add-match-header h1 {
        font-size: 32px;
    }

    .form-section {
        padding: 24px;
    }

    .teams-grid {
        grid-template-columns: 1fr 50px 1fr;

        gap: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .add-match-page {
        padding: 25px 14px 45px;
    }

    .add-match-header {
        align-items: flex-start;

        padding-bottom: 22px;
    }

    .add-match-header h1 {
        font-size: 29px;
    }

    .add-match-header p {
        font-size: 13px;
    }

    .volleyball-icon {
        width: 48px;
        height: 48px;

        margin-left: 12px;

        border-radius: 10px;

        font-size: 23px;
    }

    .add-match-card {
        border-radius: 12px;
    }

    .form-section {
        padding: 21px 17px;
    }

    .form-section-title {
        gap: 11px;

        margin-bottom: 18px;
    }

    .form-number {
        width: 30px;
        height: 30px;

        border-radius: 7px;

        font-size: 10px;
    }

    .form-section-title h2 {
        font-size: 16px;
    }

    .form-section-title p {
        font-size: 11px;
    }

    .teams-grid {
        display: flex;

        flex-direction: column;

        gap: 14px;
    }

    .vs-box {
        width: 40px;
        height: 40px;

        margin: -3px auto;
    }

    .schedule-grid,
    .details-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .form-footer {
        flex-direction: column-reverse;

        align-items: stretch;

        padding: 19px 17px;
    }

    .cancel-button,
    .create-match-button {
        width: 100%;
    }

}