:root {
    --primary-color: #0066cc;
    --primary-hover: #0050a3;
    --success-color: #2e7d32;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #d1d5db;
    --danger-color: #d32f2f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container-card {
    background: var(--card-bg);
    max-width: 480px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
header h2 { font-size: 24px; color: var(--primary-color); }
header p { font-size: 16px; color: #666; font-weight: 500; }

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.required { color: var(--danger-color); }

select, input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
}
select:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 10px;
    background: #fafafa;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.radio-label input {
    display: none;
}

.radio-label input:checked + span {
    color: white;
    font-weight: bold;
}

.radio-label:has(input:checked) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.photo-section {
    text-align: center;
}

.camera-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.camera-btn {
    background: #fdf2f8;
    color: #be185d;
    border: 2px dashed #f472b6;
    padding: 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: none; /* Let input be clickable */
}

.camera-wrapper input[type="file"] {
    position: absolute;
    font-size: 100px;
    opacity: 0;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

#file-name-display {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: var(--success-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(46, 125, 50, 0.3);
}

.submit-btn:disabled {
    background: #a5d6a7;
    cursor: not-allowed;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

/* Success Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--success-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-message {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-message h2 { font-size: 32px; margin-bottom: 10px; }
.success-message h3 { font-size: 24px; font-weight: normal; }

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.error-box {
    background: #ffebee;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    border: 1px solid #ffcdd2;
}
