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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    max-width: 520px;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 160px;
    height: auto;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 28px 24px;
    width: 100%;
}

.form-logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.form-logo {
    width: 80px;
    height: auto;
}

.card h1 {
    color: #1e3a5f;
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
}

.card p.subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.15);
}

input.is-invalid {
    border-color: #dc2626;
}

input.is-valid {
    border-color: #16a34a;
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    min-height: 16px;
}

.hint {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

button.submit-btn {
    width: 100%;
    padding: 13px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

button.submit-btn:hover {
    background: #16304d;
}

button.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Success page */
.success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #16a34a;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.detail-row span:first-child {
    color: #6b7280;
}

.detail-row span:last-child {
    color: #1f2937;
    font-weight: 600;
}

.download-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 13px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 24px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #128a3e;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .card {
        padding: 28px 20px;
        border-radius: 10px;
    }

    .card h1 {
        font-size: 22px;
    }
}
