* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
}
h2 {
    color: #667eea;
    margin: 30px 0 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 10px;
}
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}
.form-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #cbd5e0;
    padding-bottom: 10px;
    margin-top: 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.form-row.full {
    grid-template-columns: 1fr;
}
.form-group {
    display: flex;
    flex-direction: column;
}
label {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select {
    padding: 12px 16px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}
select {
    cursor: pointer;
    background-color: white;
}
input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.custom-piece-input {
    display: none;
    margin-top: 8px;
}
.custom-piece-input.visible {
    display: block;
}
button[type="submit"], .btn-secondary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}
button[type="submit"] {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}
.btn-secondary {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.5);
}
.back-link {
    text-align: center;
    margin-top: 20px;
}
.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.back-link a:hover {
    text-decoration: underline;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}
#pro-fields {
    display: none;
}
.password-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ff9800;
}
.password-match-error {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 4px;
    display: none;
}
.password-match-success {
    color: #16a34a;
    font-size: 0.85em;
    margin-top: 4px;
    display: none;
}
input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
input.success {
    border-color: #16a34a;
}
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .container {
        max-width: 100%;
        padding: 25px 18px;
    }
    h1 { font-size: 1.6em; }
    h2 { font-size: 1.25em; }
    .form-row { grid-template-columns: 1fr; }
    .form-section {
        padding: 18px;
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }
    .container {
        border-radius: 12px;
        padding: 18px 14px;
    }
    h1 { font-size: 1.35em; }
    .form-section {
        padding: 14px 12px;
        margin-bottom: 18px;
    }
    .form-section h3 {
        font-size: 1.1em;
    }
    button[type="submit"], .btn-secondary {
        font-size: 1em;
        padding: 14px;
    }
}
