/* ADS Trade Application Form — Front-end Styles */

.ads-tf-wrap { font-family: inherit; color: #1A1A1A; max-width: 860px; margin: 0 auto; }
.ads-tf-wrap * { font-family: inherit; }

/* Section card */
.ads-tf-section { background: #fff; border: 1px solid #E0D8CC; margin-bottom: 24px; }
.ads-tf-section-head { padding: 24px 36px; border-bottom: 1px solid #E0D8CC; display: flex; align-items: center; gap: 16px; }
.ads-tf-step-num { width: 36px; height: 36px; min-width: 36px; border: 1px solid #B8965A; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #B8965A; font-family: 'Cormorant Garamond', Georgia, serif; }
.ads-tf-section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 500; color: #1A1A1A; margin: 0 0 3px; }
.ads-tf-section-sub { font-size: 13px; color: #4A4A4A; font-weight: 300; margin: 0; }
.ads-tf-section-body { padding: 32px 36px; }

/* Grid */
.ads-tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.ads-tf-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.ads-tf-group:last-child { margin-bottom: 0; }

/* Labels */
.ads-tf-label { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #1A1A1A; }
.ads-tf-req { color: #B8965A; margin-left: 2px; }
.ads-tf-hint { font-size: 11px; color: #4A4A4A; font-weight: 300; }

/* Inputs */
.ads-tf-input,
.ads-tf-select,
.ads-tf-textarea {
    width: 100%; padding: 12px 14px;
    font-family: inherit;
    font-size: 14px; font-weight: 300; color: #1A1A1A;
    background: #fff; border: 1px solid #C8BFB0;
    outline: none; transition: border-color 0.2s;
    -webkit-appearance: none; appearance: none; border-radius: 0;
}
.ads-tf-input:focus, .ads-tf-select:focus, .ads-tf-textarea:focus { border-color: #B8965A; }
.ads-tf-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='%23B8965A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.ads-tf-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Checkbox grid */
.ads-tf-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ads-tf-checkbox-item { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 14px; border: 1px solid #E0D8CC; transition: border-color 0.2s, background 0.2s; }
.ads-tf-checkbox-item:hover { border-color: #B8965A; background: #FEFCF8; }
.ads-tf-checkbox-item input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; accent-color: #B8965A; cursor: pointer; flex-shrink: 0; }
.ads-tf-checkbox-item span { font-size: 13px; font-weight: 300; color: #1A1A1A; line-height: 1.4; }

/* Terms */
.ads-tf-terms-box { background: #F8F5F0; border: 1px solid #E0D8CC; padding: 18px; max-height: 150px; overflow-y: auto; font-size: 12px; font-weight: 300; color: #4A4A4A; line-height: 1.8; margin-bottom: 16px; }
.ads-tf-terms-agree { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-bottom: 24px; }
.ads-tf-terms-agree input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; accent-color: #B8965A; margin-top: 3px; flex-shrink: 0; }
.ads-tf-terms-agree span { font-size: 13px; font-weight: 300; color: #1A1A1A; line-height: 1.6; }

/* Error */
.ads-tf-error-msg { background: #fdf2f2; border: 1px solid #f5c6c6; color: #c0392b; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; border-radius: 0; }

/* Submit button */
.ads-tf-submit { display: block; width: 100%; background: #B8965A; color: #fff; padding: 18px; font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; border: none; cursor: pointer; transition: opacity 0.2s; border-radius: 0; }
.ads-tf-submit:hover { opacity: 0.88; }
.ads-tf-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ads-tf-submit-note { text-align: center; font-size: 12px; color: #4A4A4A; font-weight: 300; margin-top: 12px; }

/* Success state */
.ads-tf-success { text-align: center; padding: 70px 40px; background: #fff; border: 1px solid #E0D8CC; }
.ads-tf-success-icon { width: 64px; height: 64px; border: 2px solid #B8965A; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.ads-tf-success-icon svg { width: 28px; height: 28px; }
.ads-tf-success h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 400; color: #1A1A1A; margin-bottom: 12px; }
.ads-tf-success p { font-size: 14px; font-weight: 300; color: #4A4A4A; line-height: 1.8; max-width: 420px; margin: 0 auto; }

/* File Upload */
.ads-tf-upload-area { border: 1px dashed #C8BFB0; transition: border-color 0.2s; position: relative; }
.ads-tf-upload-area:hover { border-color: #B8965A; }
.ads-tf-upload-area.ads-tf-upload-active { border-color: #B8965A; background: #FEFCF8; }
.ads-tf-file-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.ads-tf-upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 20px; cursor: pointer; text-align: center; }
.ads-tf-upload-text { font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #1A1A1A; }
.ads-tf-upload-hint { font-size: 11px; font-weight: 300; color: #4A4A4A; }
.ads-tf-file-name { display: block; padding: 8px 14px; font-size: 12px; font-weight: 300; color: #B8965A; border-top: 1px solid #E0D8CC; background: #FEFCF8; min-height: 0; }
.ads-tf-file-name:empty { display: none; }

/* Responsive */
@media (max-width: 640px) {
    .ads-tf-section-head { padding: 20px; }
    .ads-tf-section-body { padding: 20px; }
    .ads-tf-row { grid-template-columns: 1fr; }
    .ads-tf-checkbox-grid { grid-template-columns: 1fr; }
}
