.spf-form-wrap {
    max-width: 1140px;
    margin: 0 auto;
}

/* Hero banner — Burgundy + Rub el Hizb + Layered Arches */
.spf-hero {
    position: relative;
    background: linear-gradient(180deg, #1a0a0f 0%, #2a1018 60%, #1a0a0f 100%);
    padding: 60px 20px 50px;
    margin-bottom: 32px;
    text-align: center;
    overflow: hidden;
}

/* Rub el Hizb pattern */
.spf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D4A574' stroke-width='0.7'%3E%3Crect x='25' y='25' width='70' height='70' transform='rotate(0 60 60)'/%3E%3Crect x='25' y='25' width='70' height='70' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='18'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
}

/* Radial glow */
.spf-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Inset frame */
.spf-hero-frame {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    pointer-events: none;
}

/* Layered arches */
.spf-hero-arches {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    height: 100%;
    z-index: 0;
}

.spf-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spf-hero-logo {
    width: 150px;
    max-width: 80%;
    height: auto;
}

/* Gold divider */
.spf-hero-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spf-hero-divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574);
}

.spf-hero-divider-line:last-child {
    background: linear-gradient(90deg, #D4A574, transparent);
}

.spf-hero-divider-diamond {
    width: 8px;
    height: 8px;
    background: #D4A574;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.spf-hero h1 {
    color: #fff;
    font-size: 2.2em;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    margin: 0;
}

.spf-hero-subtitle {
    color: #D4A574;
    font-size: 0.85em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Content area below hero */
.spf-content-area {
    padding: 0 20px;
}

/* Sections */
.spf-section {
    margin-bottom: 32px;
}

.spf-section h2 {
    text-align: center;
}

/* Messages */
.spf-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.spf-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.spf-errors li {
    color: #dc2626;
    margin-bottom: 4px;
}

.spf-errors li:last-child {
    margin-bottom: 0;
}

.spf-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.spf-success h3 {
    color: #166534;
    margin-top: 0;
    margin-bottom: 8px;
}

/* Form fields */
.spf-field {
    margin-bottom: 20px;
}

.spf-field > label {
    display: block;
    margin-bottom: 6px;
}

.spf-required {
    color: #dc2626;
}

.spf-field input[type="text"],
.spf-field input[type="email"],
.spf-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    -webkit-appearance: none;
}

.spf-field input[type="text"]:focus,
.spf-field input[type="email"]:focus,
.spf-field input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Consent checkbox */
.spf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    background: #fffbeb;
    padding: 14px 16px;
    border: 1px solid #fcd34d;
    border-radius: 4px;
}

.spf-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Signature pad */
.spf-signature-wrap {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}

.spf-signature-wrap canvas {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
}

/* Description text */
.spf-description {
    margin: 0 0 12px 0;
}

/* Radio group */
.spf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spf-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.spf-radio-label:hover {
    background: #f9fafb;
}

.spf-radio-label input[type="radio"] {
    flex-shrink: 0;
}

/* Buttons */
.spf-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
}

.spf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spf-btn-primary {
    background: #2563eb;
    color: #fff;
}

.spf-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.spf-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 14px;
}

.spf-btn-secondary:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 480px) {
    .spf-content-area {
        padding: 0 10px;
    }

    .spf-signature-wrap canvas {
        height: 160px;
    }

    .spf-radio-label {
        padding: 8px 10px;
    }
}
