/* A pure CSS stylesheet for a responsive form,
    based on the provided design.
*/

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hidden {
    display: none;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 0;
}

.message {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin: 1rem 0;
}

.message.success {
    color: #000;
}

.message.error {
    color: #000;
}

.container {
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: fadeIn 1s ease-in-out;
    width: 100%;
    max-width: 1000px;
}

h1 {
    font-family: 'Merienda', serif;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    animation: slideDown 1s ease-in-out;
    padding: 20px;
}

.form-container {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
    gap: 8px; /* Added gap for better spacing */
}

/* Responsive styles for larger screens */
@media (min-width: 768px) {
    .input-group {
        flex-direction: row;
        align-items: center;
    }
}

label {
    font-family: 'Merienda', serif;
    font-weight: 300;
    color: #ffffff;
    width: 100%;
    text-align: left;
    padding: 5px;
}

/* Responsive styles for larger screens */
@media (min-width: 768px) {
    label {
        width: 30%;
    }
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    text-align: left;
}

/* Responsive styles for larger screens */
@media (min-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        width: 65%;
    }
}

.radio-group,
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Updated checkbox-group for responsiveness */
.checkbox-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Changed to wrap */
    margin-bottom: 2px;
    padding: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    cursor: pointer;
    color: #fff;
    flex-grow: 1;
}

#createTeamSection,
#joinTeamSection {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 1rem 0;
}

/* Responsive styles for larger screens */
@media (min-width: 768px) {
    #createTeamSection,
    #joinTeamSection {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

#generateCodeBtn {
    margin-top: 10px;
}

button#copyCodeBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ff0000;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button#copyCodeBtn:hover {
    background-color: #cc0000;
}

#teamCodeSection {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#generateCodeBtn {
    margin-left: 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ff0000;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #cc0000;
}

#paymentContainer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#checkboxError {
    color: #e60000;
    font-size: 0.9rem;
    display: none;
}

#message {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
}

.success {
    color: #000;
    background-color: #28a745;
}

.error {
    color: #fff;
    background-color: #dc3545;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}