/* Individual Case Study 9: Retro Trivia Player Passport */

.storage-note,
.saved-message {
    padding: 1rem;
    border-left: 4px solid #35ff75;
    background-color: #08100b;
}

#passportForm {
    display: grid;
    gap: 1rem;
}

.validation-summary {
    padding: 1rem;
    border: 1px solid #2d8f4f;
    border-left: 4px solid #35ff75;
    background-color: #08100b;
    color: #b9ffd0;
}

.validation-summary.error-message {
    border-color: #ff6d6d;
    color: #ffd6d6;
}

.validation-summary.success-message {
    border-color: #35ff75;
    color: #7CFF9B;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.35);
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label {
    color: #b9ffd0;
    font-weight: bold;
}

.form-field span {
    color: #ff9b9b;
}

.form-field input[type="text"],
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2d8f4f;
    background-color: #08100b;
    color: #d6ffe2;
    font: inherit;
}

.form-field input[type="text"]:focus,
.form-field select:focus {
    outline: 2px solid #7CFF9B;
    box-shadow: 0 0 10px rgba(124, 255, 155, 0.45);
}

#player-card table {
    margin-bottom: 1.25rem;
}

#player-card caption {
    padding: 0.75rem;
    color: #b9ffd0;
    text-align: left;
}

#player-card td:last-child {
    color: #7CFF9B;
    overflow-wrap: anywhere;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

button,
.button-link {
    padding: 0.75rem 1rem;
    border: 1px solid #35ff75;
    background-color: #12351f;
    color: #7CFF9B;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    background-color: #7CFF9B;
    color: #050807;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.8);
}

button:disabled {
    border-color: #566059;
    background-color: #202622;
    color: #9aa39d;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 600px) {
    .button-group {
        display: grid;
    }

    button,
    .button-link {
        width: 100%;
        text-align: center;
    }
}
