body {
    margin: 0;
    padding: 0;
    background: #000; /* Black background */
    font-family: Arial, sans-serif;
    color: #fff;
}

.form-container { /* Used by start.php */
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    background: #000; /* Or #1a1a1a to match dashboard container style */
}

/* Styles for general content area above form in start.php */
.main-content-area {
    max-width: 700px;
    margin: 30px auto 0 auto;
    text-align: center;
    color: #fff;
    padding: 0 20px; /* Add some padding */
}
.main-content-area h1 { /* Assuming h1 is used from CMS */
    color: #FFD700; /* Match dashboard yellow accent */
    margin-bottom: 15px;
}
.main-content-area p {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
}


form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns by default */
    gap: 30px; /* Reduced gap slightly */
    margin-bottom: 25px; /* Increased spacing */
}

.form-row.single { /* For single column rows like country */
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 20px; /* Original spacing, can be adjusted if form-row gap is enough */
    position: relative;
}

label {
    display: block;
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px; /* Increased space below label */
}

.required {
    color: #FFD700; /* Changed to yellow for better visibility on dark bg */
    margin-left: 3px;
}

input[type="text"],
input[type="email"],
input[type="password"], /* Added password type */
select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1em;
    padding: 8px 0; /* Adjusted padding slightly */
    outline: none;
    border-bottom: 1px solid #666;
    transition: border-bottom-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't expand width */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-bottom-color: #FFD700; /* Yellow on focus */
}

.phone-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #666; /* Apply line to whole group */
    transition: border-bottom-color 0.3s ease;
}
.phone-group:focus-within { /* Style when any element inside is focused */
    border-bottom-color: #FFD700;
}


.phone-group input[type="text"] {
    border-bottom: none; /* Remove individual border from phone input */
    flex-grow: 1; /* Allow phone number input to take space */
}


.country-code {
    display: inline-flex;
    align-items: center;
    padding-right: 10px; /* Space before phone number input */
    /* border-bottom: 1px solid #666; */ /* Removed, applied to phone-group */
}

.country-code .flag-img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px; /* Reduced margin */
}

.country-code .code {
    font-size: 1em;
    color: #fff;
    padding-left: 5px; /* Added padding for code */
}

/* For the select dropdown styling */
select {
    /* background: transparent; */ /* Handled by general input styling */
    appearance: none; /* Remove default system appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 25px; /* Make space for custom arrow */
}

.select-wrapper { /* Wrap your select in this div if you want custom arrow */
    position: relative;
    display: inline-block; /* Or block if it takes full width */
    width: 100%; /* If select is full width */
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px; /* Adjust position of arrow */
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-size: 0.8em;
}

/* Input field line (if used as separate div) - can be removed if bottom-border is enough */
.line {
    /* height: 1px; */
    /* background-color: #666; */
    /* transition: background-color 0.3s ease; */
    /* Removed as bottom-border handles this now */
}
/* input:focus + .line, select:focus + .line {
    background-color: #fff;
} */


/* Submit button styling */
button.submit-button, /* More specific to distinguish from other buttons */
input[type="submit"] { /* If you use input type submit elsewhere */
    display: inline-block;
    background: #FFD700; /* Yellow button */
    color: #000; /* Black text */
    border: none;
    padding: 12px 25px; /* Adjusted padding */
    cursor: pointer;
    font-size: 1em;
    font-weight: bold; /* Added for emphasis */
    text-transform: uppercase;
    margin-top: 30px;
    border-radius: 4px; /* Added border radius */
    transition: background-color 0.3s ease, color 0.3s ease;
}

button.submit-button:hover,
input[type="submit"]:hover {
    background: #FFC107; /* Amber on hover */
    color: #000;
}

/* Small text / helper text */
small {
    color: #aaa;
    font-size: 0.8em;
    display: block; /* Make it take its own line */
    margin-top: 4px; /* Space from input */
}
small#password-error { /* Specific for password error message */
    color: #ff6b6b; /* More visible red for error */
    /* display: none; */ /* Handled by JS */
}

/* Link for login below form */
.form-container p a {
    color: #FFD700; /* Yellow link */
    text-decoration: none;
    font-weight: bold;
}
.form-container p a:hover {
    text-decoration: underline;
}

/* --- Message Box Styles --- */
.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95em;
    border: 1px solid transparent;
}

.message-box.error {
    background-color: rgba(255, 80, 80, 0.15); /* Light red background */
    color: #ff8a8a; /* Light red text */
    border-color: #ff5050;
}

.message-box.error a {
    color: #ffc5c5; /* Even lighter red for the link */
    font-weight: bold;
    text-decoration: underline;
}