* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0b3d2e 0%, #14532d 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1a1a1a;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

header {
    background: #0b3d2e;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.logo {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
}

/* Ghana phone input with country code prefix */
.phone-group {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.phone-group input {
    border-radius: 0 6px 6px 0;
}

.field .hint {
    font-size: 12px;
    color: #6b7280;
}

header h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 6px;
}

form {
    padding: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #0b3d2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 100%;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0b3d2e;
    box-shadow: 0 0 0 3px rgba(11,61,46,0.15);
    background: #fff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding-top: 4px;
}

.checkbox-group input {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 13px;
    color: #374151;
    text-transform: none;
    font-weight: normal;
    cursor: pointer;
}

.btn {
    background: #0b3d2e;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn:hover {
    background: #082f24;
}

.btn:active {
    transform: translateY(1px);
}

.msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.msg.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.msg.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.admin-links {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.admin-links a {
    color: #0b3d2e;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}

.admin-links a:hover {
    text-decoration: underline;
}

#photoPreview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    margin-top: 8px;
    display: block;
}

/* Data Protection notice */
.dp-notice {
    display: flex;
    gap: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #15803d;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.dp-notice .dp-icon {
    font-size: 24px;
    line-height: 1.2;
    flex-shrink: 0;
}

.dp-notice h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #0b3d2e;
    margin-bottom: 6px;
}

.dp-notice p {
    font-size: 13px;
    color: #374151;
    line-height: 1.65;
}

.dp-notice p + p {
    margin-top: 6px;
}

/* Accuracy / check your details note */
.check-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 20px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.65;
}

.check-note strong {
    color: #92400e;
}

/* Live duplicate-registration hint */
.dup-hint {
    display: none;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 5px;
}

.dup-hint.dup-warn {
    display: block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 5px;
    padding: 7px 10px;
    color: #92400e;
    font-weight: 600;
}

.footer-note {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 600px) {
    body { padding: 10px; }
    .grid { grid-template-columns: 1fr; }
    header { padding: 20px; }
    header h1 { font-size: 22px; }
    form { padding: 20px; }
}
