/* Luisa Contracts — Frontend Styles */

.lc-selector,
.lc-form-wrap {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #2D2A4A;
    box-sizing: border-box;
}
.lc-selector *, .lc-form-wrap * { box-sizing: border-box; }

/* HEADER */
.lc-selector-header,
.lc-form-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.lc-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #EEEDFE;
    color: #534AB7;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px !important;
}
.lc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 30px);
    color: #2D2A4A;
    line-height: 1.3;
    margin: 0 0 12px !important;
}
.lc-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 !important;
}

/* SELECTOR GRID */
.lc-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem 0;
}
@media (max-width: 768px) {
    .lc-selector-grid { grid-template-columns: 1fr; }
}

.lc-selector-card {
    background: #fff;
    border: 1px solid #EEE;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lc-selector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(45,42,74,0.10);
    border-color: transparent;
}
.lc-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 4px;
}
.lc-card-icon svg { width: 28px; height: 28px; }
.lc-selector-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2D2A4A;
    margin: 8px 0 4px !important;
}
.lc-selector-card p {
    font-size: 13px;
    color: #666;
    margin: 0 !important;
    line-height: 1.5;
}
.lc-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: #534AB7 !important;
    font-size: 15px !important;
    margin: 10px 0 6px !important;
}
.lc-price small { color: #7F77DD; font-size: 12px; }

.lc-btn-primary,
.lc-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #7F77DD, #534AB7);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 22px rgba(127,119,221,0.35);
    margin-top: 10px;
}
.lc-btn-primary:hover,
.lc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(83,74,183,0.45);
}
.lc-btn-primary:disabled,
.lc-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lc-back-btn {
    background: transparent;
    border: none;
    color: #7F77DD;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 20px;
}
.lc-back-btn:hover { background: #EEEDFE; }

/* FORM SECTIONS */
.lc-section {
    background: #fff;
    border: 1px solid #EEE;
    border-radius: 18px;
    padding: 1.75rem;
    margin-bottom: 20px;
    border-top: 4px solid #7F77DD;
}
.lc-section legend {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 17px;
    color: #534AB7;
    padding: 0 12px;
    background: #fff;
}
.lc-optional-badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-size: 10px;
    background: #FFF3E0;
    color: #B7750B;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    vertical-align: middle;
}

.lc-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 14px;
    margin-top: 12px;
}
.lc-grid > .lc-field { grid-column: span 5; min-width: 0; }
.lc-grid > .lc-field-wide { grid-column: 1 / -1; }
.lc-grid > .lc-field-small { grid-column: span 2; }
@media (max-width: 640px) {
    .lc-grid { grid-template-columns: repeat(2, 1fr); }
    .lc-grid > .lc-field, .lc-grid > .lc-field-wide { grid-column: 1 / -1; }
    .lc-grid > .lc-field-small { grid-column: span 1; }
}
.lc-section-note {
    font-size: 12.5px;
    color: #7a7690;
    background: #F7F4F0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 6px 0 4px !important;
    line-height: 1.5;
}

.lc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2D2A4A;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.lc-required { color: #E49B9E; margin-left: 2px; }

.lc-field input,
.lc-field select {
    width: 100%;
    height: auto;
    padding: 10px 14px;
    border: 1.5px solid #E0DCFB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    color: #2D2A4A;
    background: #FAFAFC;
    transition: border-color 0.2s, background 0.2s;
}
.lc-field select { appearance: auto; cursor: pointer; }
.lc-field input:focus,
.lc-field select:focus {
    outline: none;
    border-color: #7F77DD;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(127,119,221,0.15);
}
.lc-field input:invalid:not(:placeholder-shown) {
    border-color: #E49B9E;
}

/* SIGNATURE PAD */
.lc-signature-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #E0DCFB;
}
.lc-signature-block > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2D2A4A;
    margin-bottom: 10px;
}
.lc-signature-pad-wrap {
    position: relative;
    background: #FAFAFC;
    border: 2px dashed #C8C4F0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.lc-signature-pad {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
    background: #fff;
    border-radius: 10px;
}
.lc-clear-signature {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #E0DCFB;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}
.lc-clear-signature:hover {
    border-color: #7F77DD;
    color: #534AB7;
}
.lc-signature-hint {
    font-size: 11px;
    color: #999;
    margin: 8px 0 0 !important;
    text-align: center;
}

/* CONSENTS */
.lc-consents {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    margin: 20px 0;
    border: 1px solid #EEE;
}
.lc-consents h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: #534AB7;
    margin: 0 0 16px !important;
}
.lc-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #FAFAFC;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.lc-consent:hover { background: #F5F3FC; }
.lc-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #7F77DD;
    flex-shrink: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}
.lc-consent span {
    font-size: 12.5px;
    line-height: 1.6;
    color: #444;
}

/* INFO BOX */
.lc-info-box {
    background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(228,155,158,0.06));
    border-left: 4px solid #F5A623;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
}
.lc-info-box p { margin: 4px 0 !important; }
.lc-info-box code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #534AB7;
    border: 1px solid #F5D8A3;
}

/* SUBMIT */
.lc-submit-row {
    text-align: center;
    padding: 24px 0;
}
.lc-btn-submit {
    font-size: 14px;
    padding: 14px 36px;
}
.lc-submit-note {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #7F77DD;
    margin: 12px 0 0 !important;
}

/* SUCCESS */
.lc-success {
    background: linear-gradient(135deg, #EEEDFE, #FBEEF0);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}
.lc-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7F77DD, #534AB7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(127,119,221,0.35);
}
.lc-success-icon svg { width: 34px; height: 34px; }
.lc-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 24px;
    color: #2D2A4A;
    margin: 0 0 10px !important;
}
.lc-success-message {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 20px !important;
}
.lc-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: #fff;
    border: 1.5px solid #7F77DD;
    color: #534AB7 !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.lc-btn-download:hover {
    background: #EEEDFE;
    transform: translateY(-2px);
}

/* ERROR */
.lc-error {
    background: #FBEEF0;
    border-left: 4px solid #E49B9E;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}
.lc-error-message {
    color: #B7565A;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 !important;
    font-weight: 500;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 640px) {
    .lc-section { padding: 1.25rem 1rem; }
    .lc-consents { padding: 1.25rem 1rem; }
    .lc-signature-pad { height: 160px; }
}

/* Preview button */
.lc-submit-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.lc-submit-row .lc-submit-note { flex-basis: 100%; text-align: center; }
.lc-btn-preview {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: 50px;
    background: #fff;
    border: 1.5px solid #C8C4F0;
    color: #534AB7;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}
.lc-btn-preview:hover { background: #EEEDFE; border-color: #7F77DD; }
