:root {
    --primary: #0f172a;
    --primary-light: #334155;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}

.nav-back {
    max-width: 900px;
    margin: 0 auto 20px auto;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

.nav-back:hover {
    color: var(--accent-hover);
    transform: translateX(-4px);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.header {
    text-align: left;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.terms-body section {
    margin-bottom: 40px;
}

.terms-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: none;
    padding-left: 0;
}

.terms-body h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.terms-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-light);
    margin: 25px 0 12px 0;
}

.terms-body p {
    margin-bottom: 16px;
    color: #475569;
}

.terms-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.terms-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #475569;
}

.terms-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Form Styling */
.acceptance-form-container {
    margin-top: 60px;
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.acceptance-form-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.acceptance-form-container > p {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: white;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: var(--accent);
}

.checkbox-item input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.terms-checkbox {
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

#message.success { 
    display: block;
    background: #f0fdf4;
    color: #166534; 
    border: 1px solid #bbf7d0;
}

#message.error { 
    display: block;
    background: #fef2f2;
    color: #991b1b; 
    border: 1px solid #fecaca;
}

@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }
    .container {
        padding: 30px 20px;
    }
    .header h1 {
        font-size: 24px;
    }
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
