/* ==========================================================================
   iOS 26 Liquid Glass - Forms & Adaptive Styles
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
:root { --primary-color: #007aff; --error-color: #ff3b30; --success-color: #34c759; --input-bg: rgba(255, 255, 255, 0.4); --input-border: rgba(0, 0, 0, 0.1); }
html { scroll-behavior: smooth; }
html, body { overscroll-behavior: none; background-color: #f5f5f7; color: #1d1d1f; min-height: 100vh; }

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(220, 230, 255, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 240, 245, 0.6) 0%, transparent 50%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f2f7 100%); z-index: -2;
}

.glass-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.6); }
.main-container { width: 92%; max-width: 1100px; margin: 0 auto; padding-top: 70px; padding-bottom: 60px; }
.hero-section { text-align: center; margin-bottom: 40px; animation: fadeInUp 0.8s ease-out; }
h1.product-title { font-size: 48px; font-weight: 700; letter-spacing: -1px; margin-bottom: 8px; background: linear-gradient(135deg, #000 0%, #434343 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p.product-subtitle { font-size: 18px; color: #86868b; font-weight: 400; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.bento-card { border-radius: 24px; padding: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; display: flex; flex-direction: column; }
.bento-card.card--wide { grid-column: span 2; }
.card-content { flex: 1; }
.card-title { font-size: 20px; font-weight: 600; margin: 0 0 20px 0; color: #1d1d1f; display: flex; align-items: center; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-group { margin-bottom: 16px; flex: 1; min-width: 200px; position: relative; }
.half-width { flex: 0 0 calc(50% - 8px); }
.third-width { flex: 0 0 calc(33.333% - 11px); }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #515154; padding-left: 4px; }
label.required::after { content: " *"; color: var(--error-color); }

input[type="text"], input[type="number"], input[type="datetime-local"], input[type="date"], select, textarea {
    width: 100%; padding: 12px 14px; background-color: var(--input-bg); border: 1px solid var(--input-border);
    border-radius: 12px; font-size: 15px; color: #1d1d1f; transition: all 0.2s ease; -webkit-appearance: none; min-height: 44px;
}
input[type="text"], input[type="number"], input[type="datetime-local"], input[type="date"], select { height: 44px; }

input[readonly][id="destination"]:not(:disabled) { cursor: pointer; background-color: var(--input-bg); }
textarea { resize: vertical; font-family: inherit; line-height: 1.5; }
input:focus:not(:disabled), select:focus:not(:disabled), textarea:focus:not(:disabled) {
    outline: none; border-color: var(--primary-color); background-color: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
input:disabled, select:disabled, textarea:disabled { background-color: rgba(220, 220, 225, 0.4); color: #8e8e93; cursor: not-allowed; border-color: rgba(0, 0, 0, 0.05); }

.form-group.has-error input:not(:disabled), .form-group.has-error select:not(:disabled), .form-group.has-error textarea:not(:disabled) {
    border-color: var(--error-color); background-color: rgba(255, 59, 48, 0.05);
}
.error-msg { color: var(--error-color); font-size: 11px; margin-top: 4px; padding-left: 4px; display: none; position: absolute; }
.form-group.has-error .error-msg { display: block; }
select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23515154' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

.file-group .file-input-wrapper { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; overflow: hidden; box-sizing: border-box; }
.file-group input[type="file"] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.btn-secondary { flex-shrink: 0; white-space: nowrap; background-color: var(--input-bg); border: 1px solid var(--input-border); color: #1d1d1f; padding: 8px 16px; font-size: 13px; border-radius: 20px; font-weight: 600; transition: all 0.2s ease; }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.9); }
.file-name { font-size: 13px; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.thumb-preview { width: 30px; height: 32px; object-fit: fill; border-radius: 4px; display: none; flex-shrink: 0; margin-right: 2px; }

.submit-container { grid-column: 1 / -1; width: 100%; display: flex; justify-content: center; align-items: center; gap: 30px; padding: 30px 0 10px 0; }
.btn-primary { border: none; border-radius: 20px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; width: 220px; background-color: #000; color: #fff; padding: 14px 0; font-size: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); text-align: center; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }

.detail-section { margin-top: 40px; border-radius: 24px; padding: 40px; scroll-margin-top: 40px; }
.detail-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; text-align: center; }
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-item { background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 16px; padding: 20px; text-align: left; }
.spec-item.wide { grid-column: span 2; }
.spec-item.full { grid-column: span 3; }
.spec-label { font-size: 12px; font-weight: 600; color: #86868b; margin-bottom: 6px; }
.spec-value { font-size: 20px; font-weight: 600; color: #1d1d1f; line-height: 1.3; }
.spec-value.reason-text { font-size: 16px; font-weight: 400; color: #424245; white-space: pre-wrap; }
.proof-img { margin-top: 10px; max-width: 120px; border-radius: 8px; cursor: zoom-in; }
.status-valid { color: var(--success-color); }
.status-invalid { color: var(--error-color); }
.hidden { display: none !important; }

.lightbox { position: fixed; inset: 0; z-index: 9999; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.lightbox__content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox__img { max-width: 95%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.2); border: none; border-radius: 50%; color: #fff; font-size: 24px; cursor: pointer; }

.region-content { position: absolute; bottom: 0; left: 0; right: 0; height: 60vh; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top-left-radius: 20px; border-top-right-radius: 20px; display: flex; flex-direction: column; z-index: 10000; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1); }
.lightbox.is-open .region-content { transform: translateY(0); }
.region-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.region-header h3 { font-size: 18px; margin: 0; color: #1d1d1f; }
.region-close-btn { position: static; width: 30px; height: 30px; background: rgba(0, 0, 0, 0.05); color: #1d1d1f; display: flex; align-items: center; justify-content: center; }
.region-breadcrumb { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--primary-color); border-bottom: 1px solid rgba(0, 0, 0, 0.05); min-height: 44px; }
.region-list { list-style: none; overflow-y: auto; flex: 1; padding: 0; margin: 0; }
.region-item { padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.03); cursor: pointer; font-size: 15px; color: #1d1d1f; transition: background 0.2s; }
.region-item:hover { background: rgba(0, 122, 255, 0.05); }

@media (min-width: 820px) {
    .region-content { bottom: auto; left: 50%; top: 50%; height: 400px; width: 360px; border-radius: 20px; transform: translate(-50%, -50%) scale(0.9); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
    .lightbox.is-open .region-content { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: 1fr; } .bento-card.card--wide { grid-column: span 1; } }
@media (max-width: 820px) {
    h1.product-title { font-size: 32px; } p.product-subtitle { font-size: 16px; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; } .bento-card.card--wide { grid-column: span 1; } .bento-card { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; } .half-width, .third-width { flex: 0 0 100%; }
    .submit-container { flex-direction: column; gap: 16px; width: 100%; } .submit-container .btn-primary { width: 100%; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); } .spec-item.wide, .spec-item.full { grid-column: span 2; } .spec-value { font-size: 17px; }
}
@media (max-width: 480px) { .main-container { width: 95%; padding-top: 50px; } .specs-grid { grid-template-columns: 1fr; } .spec-item { grid-column: span 1 !important; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }