@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&family=Poppins:wght@700&display=swap');

:root {
    /* Theme: Emulating ev.logic.ca */
    --body-bg: #0D2249;
    --card-bg: #4A4E57;
    --text-main: #F5F5F5;
    --text-sub: #B0B8C4;
    
    --accent: #5DADE2;
    --accent-hover: #3498DB;
    
    --input-bg: #3E424A;
    --input-text: #E0E0E0;
    --border: #60656F;
    
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    --radius: 12px;

    --font-head: 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: var(--text-main);
    margin: 0; padding: 20px;
    line-height: 1.6;
    display: flex; 
    justify-content: center; /* Center the card like ev.logic.ca */
    -webkit-tap-highlight-color: transparent;
}

/* Header is part of the layout outside the card in the EV css, but we can integrate it */
.navbar {
    display: none; /* Hiding separate navbar to integrate title into the card */
}

.container {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 30px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 580px; /* Match ev.logic.ca width */
    margin-top: 10px;
    box-sizing: border-box;
}

/* Add a title inside the container via CSS or assume H1 is there */
form { display: flex; flex-direction: column; gap: 22px; }

/* Insert a title if index.html navbar is hidden */
form::before {
    content: "Site Walkthrough";
    font-family: var(--font-head);
    font-size: 2em;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-head);
    color: var(--text-sub);
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 15px;
    margin-bottom: -10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

label {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: -10px;
}

input, textarea {
    font-family: var(--font-body);
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 6px);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(93, 173, 226, 0.3);
}

textarea { resize: none; font-family: inherit; line-height: 1.5; }

.action-btn {
    font-family: var(--font-head);
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: calc(var(--radius) - 6px);
    font-size: 1.15em;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(93, 173, 226, 0.3);
    transition: transform 0.1s ease;
    width: 100%;
}

.action-btn:active { transform: translateY(2px); }

/* --- SUCCESS OVERLAY --- */
#success-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 34, 73, 0.95);
    display: flex; align-items: center; justify-content: center; z-index: 100;
}
.success-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    width: 85%;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.success-card h3 { 
    font-family: var(--font-head);
    margin-top: 0; color: var(--accent); font-size: 1.8em; 
}
.success-card p { color: var(--text-sub); }

#generated-id {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin: 30px 0;
    border: 2px dashed var(--accent);
    padding: 15px;
    background: rgba(93, 173, 226, 0.1);
    border-radius: var(--radius);
}
.close-btn {
    font-family: var(--font-head);
    background: var(--input-bg); 
    color: var(--text-main);
    padding: 12px 30px; border: 1px solid var(--border);
    border-radius: 50px; font-size: 1em; font-weight: 700; cursor: pointer;
}

.hidden { display: none !important; }

#loading {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 50;
}
.spinner {
    border: 4px solid var(--input-bg); border-top: 4px solid var(--accent);
    border-radius: 50%; width: 40px; height: 40px; animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }