/* ---------------------------------------------------- */
/* Global Theme, Layout, and Utility Styles (Applies to all pages) */
/* ---------------------------------------------------- */

/* Base container for content area */
div.content {
    padding: 1px 10px;
    min-height: calc(100vh - 100px);
    box-sizing: border-box;
    padding-top: 20px;
    /* FIXED: Added padding to clear fixed footer */
    padding-bottom: 52px; 
    background-color: #fbfeffb3;
}

/* Main content wrapper with white background and shadow */
main.content-area {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    /* FIX: Creates space for the 52px fixed footer */
    padding-bottom: 52px !important; 
}

/* Shared Headings and Layout */
#registrationForm h3,
.summary-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #007bff;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 1.2em;
}

/* High Demand Label Styling for consistency */
.high-demand-label {
    display: inline-block;
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    vertical-align: middle;
    border: 1px solid #ffeeba;
}

/* MOBILE VIEW OPTIMIZATION */
@media (max-width: 768px) { 
    main.content-area {
        margin-right: 10px;
        margin-left: 10px; 
        max-width: calc(100% - 20px);
    }
}

/* ---------------------------------------------------- */
/* Step 1: domain_check.php (Domain Checker) Styles     */
/* ---------------------------------------------------- */

/* HIDES THE DOMAIN CHECK RESPONSE DATA FROM THE USER */
.hidden-response {
    display: none !important;
}

.domain-checker-form { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
    max-width: 500px; 
}
.domain-checker-form input[type="text"],
.domain-checker-form select { 
    flex-grow: 1; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
}
.domain-checker-form select { 
    flex-grow: 0;
}
.domain-checker-form button { 
    padding: 10px 15px; 
    background-color: #007bff; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}
.result-box { 
    padding: 15px; 
    border-radius: 4px; 
    font-weight: bold; 
    margin-top: 20px; 
}
/* Domain Status Colors */
.available { 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}
.taken, .result-unavailable { 
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}
.error, .result-warning { 
    background-color: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeeba; 
}

/* ---------------------------------------------------- */
/* Step 2: step2_registration.php (Form Compression)    */
/* ---------------------------------------------------- */

#registrationForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#registrationForm label {
    display: block;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 3px;
    text-align: left;
    font-size: 0.95em;
}

#registrationForm input[type="text"],
#registrationForm input[type="tel"],
#registrationForm input[type="email"],
#registrationForm textarea,
#registrationForm select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

/* Specific Fixes */
#registrationForm br {
    display: none;
}
#registrationForm select#registration_period {
    margin-bottom: 15px;
}


/* Submission Button (NOW MATCHES STEP 3 BUTTON SIZE/SHAPE) */
#registrationForm button[type="submit"] {
    width: 100%;
    /* Standardized Padding: 15px 30px */
    padding: 15px 30px; 
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    /* Standardized Font Size: 1.1em */
    font-size: 1.1em; 
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s;
}

#registrationForm button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Checkbox/Upgrade Field Styling (LK-only-field) */
.lk-only-field input[type="checkbox"] {
    width: auto; 
    margin-right: 5px;
    margin-top: 10px;
}
.lk-only-field label {
    display: inline-block;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---------------------------------------------------- */
/* Step 3: step3_summary.php (Summary Display)          */
/* ---------------------------------------------------- */

#summary_container h3 { 
    border-bottom: 2px solid #eee;
    padding-bottom: 5px; 
    margin-top: 25px; 
}
.summary-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px dotted #ccc; 
}
.summary-item strong { 
    width: 45%; 
    text-align: left; 
}
.summary-item span { 
    width: 50%; 
    text-align: right; 
    color: #333; 
    font-weight: 500; 
    word-break: break-word; 
}

/* Action Buttons Container (Back and Submit) */
.action-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; 
    margin-top: 40px; 
    gap: 10px; 
}

#submission_form {
    flex: 1 1 0; 
    box-sizing: border-box;
}

/* Submit Button (Final Confirmation) - Standardized Size/Shape */
#submit_button {
    background-color: #dc3545;
    color: white;
    padding: 15px 30px; 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em; 
    font-weight: bold;
    transition: background-color 0.2s;
    white-space: nowrap; 
    width: 100%; 
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-decoration: none;
}
#submit_button:hover {
    background-color: #c82333;
}

/* Back Button - Standardized Size/Shape */
.back-button {
    display: block; 
    flex: 1 1 0; 
    text-align: center;
    text-decoration: none;
    padding: 15px 30px; 
    border: 1px solid #007bff;
    border-radius: 6px;
    color: #007bff;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1.1em; 
    box-sizing: border-box; 
    background-color: transparent;
}
.back-button:hover {
    background-color: #e9f5ff;
    color: #0056b3;
}

/* Media query for smaller screens: stack buttons */
@media (max-width: 600px) {
    .action-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    .back-button, #submission_form {
        width: 100%;
        margin-bottom: 10px;
    }
}