/* ── Alphabets Translation Form ──────────────────────────────────────────── */

.atf-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #c8d6e5;
    border-radius: 8px;
    padding: 40px 44px 36px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Two-column grid ─────────────────────────────────────────────────────── */

.atf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.atf-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atf-col-right {
    display: flex;
    flex-direction: column;
}

/* ── Fields below the grid ───────────────────────────────────────────────── */

.atf-below-grid {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.atf-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Field wrapper ───────────────────────────────────────────────────────── */

.atf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.atf-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2d4a;
    letter-spacing: 0.01em;
}

.atf-req {
    color: #c53030;
    margin-left: 2px;
}

/* ── Text inputs & textarea ──────────────────────────────────────────────── */

.atf-input,
.atf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #c8d6e5;
    border-radius: 6px;
    font-size: 14px;
    color: #1a2d4a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.atf-input::placeholder,
.atf-textarea::placeholder {
    color: #a0aec0;
}

.atf-input:focus,
.atf-textarea:focus {
    border-color: #1a2d4a;
    box-shadow: 0 0 0 3px rgba(26, 45, 74, 0.08);
}

.atf-textarea {
    resize: vertical;
    min-height: 84px;
}

/* ── Select dropdowns ────────────────────────────────────────────────────── */

.atf-select-wrap {
    position: relative;
}

.atf-select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 38px 11px 14px;
    border: 1px solid #c8d6e5;
    border-radius: 6px;
    font-size: 14px;
    color: #1a2d4a;
    background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.atf-select:focus {
    border-color: #1a2d4a;
    box-shadow: 0 0 0 3px rgba(26, 45, 74, 0.08);
}

/* Placeholder option colour */
.atf-select option[value=""] { color: #a0aec0; }

.atf-chevron {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 0;
}

/* ── Static "English" field ──────────────────────────────────────────────── */

.atf-static-field {
    padding: 11px 14px;
    border: 1px solid #c8d6e5;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
    background: #f7fafc;
}

/* ── Upload dropzone ─────────────────────────────────────────────────────── */

.atf-field--upload {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.atf-dropzone {
    flex: 1;
    position: relative;
    border: 1.5px dashed #a0b8d0;
    border-radius: 8px;
    background: #f4f7fa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atf-dropzone:hover,
.atf-dropzone.atf-drag-over {
    border-color: #1a2d4a;
    background: #edf2f7;
}

.atf-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.atf-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    pointer-events: none;
    text-align: center;
}

.atf-upload-icon {
    margin-bottom: 4px;
    opacity: 0.55;
}

.atf-dropzone-text {
    font-size: 14px;
    color: #4a6080;
    font-weight: 500;
    margin: 0;
}

.atf-dropzone-hint {
    font-size: 12px;
    color: #8aa0b8;
    margin: 0;
}

/* File chosen state */
.atf-file-chosen {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #f0faf4;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.atf-file-chosen span {
    font-size: 13px;
    color: #1a2d4a;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atf-remove-file {
    background: none;
    border: none;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.atf-remove-file:hover { color: #c53030; }

/* ── Pricing note ────────────────────────────────────────────────────────── */

.atf-pricing-note {
    font-size: 12px;
    color: #8aa0b8;
    margin: 2px 0 0;
}

/* ── Messages ────────────────────────────────────────────────────────────── */

.atf-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.atf-message--error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.atf-message--success {
    background: #f0faf4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* ── Quote summary (shown after successful submission) ───────────────────── */

.atf-quote-heading {
    font-size: 13px;
    font-weight: 700;
    color: #276749;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.atf-quote-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.atf-quote-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #276749;
}

.atf-quote-total {
    font-weight: 700;
    font-size: 15px;
    border-top: 1px solid #9ae6b4;
    padding-top: 8px;
    margin-top: 4px;
}

.atf-min-note {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.75;
    margin-left: 6px;
}

.atf-pay-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #276749 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 24px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    font-family: inherit !important;
}

.atf-pay-btn:hover {
    background: #1e5237 !important;
}

/* ── Submit row ──────────────────────────────────────────────────────────── */

.atf-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.atf-submit {
    background: #1a2d4a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 36px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 210px !important;
    justify-content: center !important;
    font-family: inherit !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.atf-submit:hover:not(:disabled) { background: #142238 !important; }
.atf-submit:disabled { opacity: 0.7 !important; cursor: not-allowed !important; }

/* Spinner */
.atf-spin { animation: atf-rotate 0.8s linear infinite; }

@keyframes atf-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .atf-wrapper { padding: 24px 20px; }
    .atf-grid { grid-template-columns: 1fr; }
    .atf-col-right { margin-top: 4px; }
    .atf-dropzone { min-height: 130px; }
    .atf-row-two { grid-template-columns: 1fr; }
    .atf-submit { width: 100%; }
}
