/* Color Variables */
:root {
    --color-dark-bg: #1a1a1a;
    --color-card-bg: #2c2c2c;
    --color-gold: #ffcc00;
    --color-text-light: #bbb;
    --color-input-bg: #3a3a3a;
    --color-border: #555;
}

/* Global/Container Styles */
.registration-section {
    background-color: var(--color-dark-bg);
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.registration-container {
    max-width: 500px;
    width: 100%;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    padding: 30px;
    box-sizing: border-box;
}

/* Header Styles */
.header-box {
    text-align: center;
    margin-bottom: 30px;
}

.header-box h2 {
    color: var(--color-gold);
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: bold;
}

.header-box p {
    color: var(--color-text-light);
    font-size: 15px;
    margin: 0;
}

/* Form Group Layout (for First/Last Name and Country/Plan) */
.form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1 1 100%; /* Default to full width for single fields */
    margin-bottom: 20px;
}

.form-group-row > .form-group {
    flex: 1 1 45%; /* Halves the width for two fields in a row */
    margin-bottom: 0;
}

/* Input/Select Styles */
.registration-form label {
    display: block;
    color: var(--color-gold);
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form input[type="password"],
.registration-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: var(--color-input-bg);
    color: #fff;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.registration-form input:focus,
.registration-form select:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.registration-form select option {
    background-color: var(--color-input-bg);
    color: #fff;
}

/* Button Styles */
.submit-button {
    width: 100%;
    padding: 12px;
    background-color: var(--color-gold);
    color: var(--color-dark-bg);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #ffd740; /* Slightly lighter gold */
}

.submit-button:active {
    transform: scale(0.99);
}

/* Terms Text */
.terms-text {
    color: var(--color-text-light);
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

/* * TRUE RESPONSIVENESS: Stacking fields for small screens 
 * This is the primary improvement over inline styling. 
 */
@media (max-width: 480px) {
    .registration-container {
        padding: 20px;
    }

    .form-group-row {
        flex-direction: column; /* Stack the rows vertically */
        gap: 0;
    }

    .form-group-row > .form-group {
        flex: 1 1 100%; /* Make them full width */
        margin-bottom: 20px; /* Add spacing back after stacking */
    }
}