/* ═══════════════════════════════════════════════════════════════════
   Incorp Company Registration Form — Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset / base ────────────────────────────────────────────────── */
#incorp-reg-wrapper *,
#incorp-reg-wrapper *::before,
#incorp-reg-wrapper *::after {
    box-sizing: border-box;
}

#incorp-reg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ── Notices ─────────────────────────────────────────────────────── */
.incorp-notice {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-weight: 500;
}
.incorp-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.incorp-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ── Section ─────────────────────────────────────────────────────── */
.incorp-section {
    margin-bottom: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.incorp-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.incorp-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.incorp-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    border: none;
    padding: 0;
}

.incorp-section-body {
    padding: 24px;
}

/* ── Card (used for director / shareholder / secretary blocks) ───── */
.incorp-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}
.incorp-card h3 {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Person cards sub-header ─────────────────────────────────────── */
.incorp-person-card {
    border-left: 4px solid #4f46e5;
}
.incorp-person-card .person-card-title {
    color: #4f46e5;
}

/* ── Fields ──────────────────────────────────────────────────────── */
.incorp-field {
    margin-bottom: 16px;
}
.incorp-field label,
.incorp-field-group .group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.incorp-field label small,
.incorp-field label .req {
    font-weight: 400;
}
.incorp-field label .req {
    color: #e53e3e;
    margin-left: 2px;
}
.incorp-field label small {
    color: #9ca3af;
    font-size: 11px;
    margin-left: 4px;
}

#incorp-reg-wrapper input[type="text"],
#incorp-reg-wrapper input[type="email"],
#incorp-reg-wrapper input[type="tel"],
#incorp-reg-wrapper input[type="date"],
#incorp-reg-wrapper input[type="number"],
#incorp-reg-wrapper textarea,
#incorp-reg-wrapper select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
#incorp-reg-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
#incorp-reg-wrapper input:focus,
#incorp-reg-wrapper textarea:focus,
#incorp-reg-wrapper select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
#incorp-reg-wrapper textarea {
    resize: vertical;
    min-height: 90px;
}
#incorp-reg-wrapper input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #d1d5db;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
}
#incorp-reg-wrapper input[type="file"]:hover {
    border-color: #4f46e5;
}
.incorp-hint {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-top: 4px;
}

/* ── Field groups (stacked address lines) ────────────────────────── */
.incorp-field-group {
    margin-bottom: 16px;
}
.incorp-field-group .group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.incorp-field-group input {
    margin-bottom: 8px;
}
.incorp-field-group input:last-child {
    margin-bottom: 0;
}

/* ── Foreign address box ─────────────────────────────────────────── */
.incorp-foreign-address-box {
    background: #fdf4ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 14px;
}
.incorp-foreign-address-box .group-label {
    color: #7e22ce;
}

/* ── Rows / grid ─────────────────────────────────────────────────── */
.incorp-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.incorp-row-2 > * {
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}
.incorp-row-3 > * {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 160px;
}
.incorp-row .incorp-field {
    margin-bottom: 0;
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}
.incorp-row + .incorp-field,
.incorp-row + .incorp-field-group,
.incorp-row + .incorp-row {
    margin-top: 16px;
}

/* ── Nationality badge ───────────────────────────────────────────── */
.incorp-nationality-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-left: 8px;
}
.badge-sl { background: #dcfce7; color: #15803d; }
.badge-fg { background: #fef3c7; color: #b45309; }

/* ── Share summary ───────────────────────────────────────────────── */
.incorp-share-summary {
    margin-top: 24px;
    border-left: 4px solid #0ea5e9;
}
.incorp-share-summary h3 {
    color: #0284c7;
}

/* ── Submit bar ──────────────────────────────────────────────────── */
.incorp-submit-bar {
    text-align: center;
    padding: 24px 0 0;
}
#incorp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    letter-spacing: .3px;
}
#incorp-submit-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}
#incorp-submit-btn:active {
    transform: translateY(0);
}
#incorp-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.incorp-submit-note {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 10px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .incorp-section-body { padding: 16px; }
    .incorp-row-2 > *,
    .incorp-row-3 > *,
    .incorp-row .incorp-field { flex: 1 1 100%; min-width: 0; }
}
