/* COLORPRO Suggestions — Premium VI-aligned design */
/* Brand: Orange #EF821E + Dark Gray #34353C + 60-30-10 rule */
:root {
    --brand-orange: #EF821E;
    --brand-orange-dark: #d4700a;
    --brand-orange-light: #fdf0e2;
    --brand-orange-glow: rgba(239, 130, 30, 0.35);
    --brand-gray: #34353C;
    --brand-gray-light: #3d3e46;
    --brand-blue-gray: #313A54;
    --brand-gold: #C9B172;
    --brand-silver: #9EA1AD;
    --bg: #f5f5f7;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f1f1f3;
    --gray-200: #e5e5ea;
    --gray-300: #d1d1d6;
    --gray-400: #a1a1a6;
    --gray-500: #6e6e73;
    --gray-600: #48484a;
    --gray-700: #3a3a3c;
    --gray-900: #1d1d1f;
    --green: #16a34a;
    --green-light: #dcfce7;
    --red: #dc2626;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--gray-900);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 32px;
}

/* ===== Header — Dark Gray + Orange accent ===== */
.header {
    position: relative;
    overflow: hidden;
    padding: 18px 24px 16px;
    text-align: center;
    background: linear-gradient(160deg, #2a2b31 0%, var(--brand-gray) 40%, var(--brand-gray-light) 100%);
    border-radius: 0 0 24px 24px;
}
.header-bg {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(239,130,30,0.08), rgba(239,130,30,0.02));
    border-radius: 50%;
}
/* Geometric triangle decoration from VI */
.header::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid rgba(239,130,30,0.15);
}
.header::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(239,130,30,0.1);
}
.header-content {
    position: relative;
    z-index: 1;
}
.logo {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--brand-orange);
    background: rgba(239,130,30,0.12);
    padding: 4px 16px;
    border-radius: 16px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.header h1 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.2;
}
.tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== Tip Banner ===== */
.tip-banner {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 10px;
    margin: -12px 16px 0;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--brand-orange);
    border-radius: 12px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}
.tip-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.tip-text {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
}
.tip-text strong {
    color: var(--brand-orange);
    font-weight: 700;
}

/* ===== Form Card ===== */
.form-card {
    margin: 14px 16px 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-section {
    margin-bottom: 16px;
}

.form-label {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 7px;
}
.label-icon { font-size: 15px; }
.form-label .hint { font-weight: 400; color: var(--gray-400); font-size: 11px; margin-left: 2px; }
.form-label .required { color: var(--brand-orange); font-weight: 700; }

/* Name & Phone row */
.form-row {
    display: -webkit-flex;
    display: flex;
    gap: 10px;
}
.form-half {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}
@media (max-width: 380px) {
    .form-row {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0;
    }
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-transition: border-color 0.2s, box-shadow 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(239,130,30,0.1);
    background: var(--white);
}
textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: var(--gray-400);
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: var(--gray-400);
}
input::placeholder, textarea::placeholder {
    color: var(--gray-400);
}

/* ===== Upload Area — Subtle dark border + orange accent ===== */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 10px 16px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
    background: var(--gray-50);
    -webkit-tap-highlight-color: transparent;
    height: 110px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.upload-area:active {
    border-color: var(--brand-orange);
    background: var(--brand-orange-light);
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}
.upload-icon-wrap {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background: rgba(239,130,30,0.1);
    margin-bottom: 6px;
    padding-top: 7px;
}
.upload-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-orange);
    margin-bottom: 3px;
}
.upload-sub {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.4;
}
.upload-sub strong {
    color: var(--brand-orange-dark);
}

/* ===== Preview Row ===== */
.preview-row {
    display: -webkit-flex;
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.preview-item {
    position: relative;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.preview-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-gray);
    color: white;
    border: none;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.preview-add {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    border: 2px dashed var(--gray-300);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
    background: var(--gray-50);
    -webkit-transition: border-color 0.2s;
    transition: border-color 0.2s;
}
.preview-add:active {
    border-color: var(--brand-orange);
}

/* ===== Disclaimer ===== */
.disclaimer-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.disclaimer-header {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
.disclaimer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}
.disclaimer-toggle {
    font-size: 10px;
    color: var(--gray-400);
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}
.disclaimer-body {
    padding: 0 14px 10px;
    border-top: 1px solid var(--gray-200);
}
.disclaimer-list {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
}
.disclaimer-list li {
    font-size: 10px;
    color: var(--gray-500);
    line-height: 1.7;
    padding-left: 14px;
    position: relative;
    margin-bottom: 2px;
}
.disclaimer-list li:before {
    content: "\2022";
    position: absolute;
    left: 2px;
    color: var(--gray-400);
}
.disclaimer-list li strong {
    color: var(--gray-700);
    font-weight: 600;
}
.disclaimer-check {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-top: 1px solid var(--gray-200);
    -webkit-tap-highlight-color: transparent;
}
.disclaimer-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    accent-color: var(--brand-orange);
    cursor: pointer;
}
.disclaimer-check span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ===== Buttons — Orange gradient ===== */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: white;
    box-shadow: 0 4px 16px var(--brand-orange-glow);
}
.btn-primary:active {
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
    box-shadow: 0 2px 8px var(--brand-orange-glow);
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    -webkit-transform: none;
    transform: none;
}
.btn-submit {
    margin-top: 4px;
}
.btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    -webkit-animation: spin 0.6s linear infinite;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Error ===== */
.error-msg {
    background: #fef2f2;
    color: var(--red);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid #fecaca;
    line-height: 1.4;
}

/* ===== Footer — Dark with geometric accent ===== */
.footer-text {
    text-align: center;
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Success Card ===== */
.success-card {
    margin: -12px 16px 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 24px 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid var(--gray-200);
}
.success-anim {
    margin-bottom: 18px;
}
.success-circle {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--green-light);
    border-radius: 50%;
    padding: 6px;
}
.success-svg {
    width: 100%;
    height: 100%;
}
.success-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--green);
}
.success-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 6px;
    line-height: 1.5;
}
.success-detail {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* ===== Safe area for mobile ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #app {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}

/* ===== Landscape / wider screens ===== */
@media (min-width: 520px) {
    .header {
        border-radius: 0 0 28px 28px;
        padding: 20px 32px 18px;
    }
    .form-card {
        padding: 26px 22px;
    }
}
