/* ============================================================
   GAH Wire Transfer Form — Stylesheet v0.1
   ============================================================ */

:root {
    --gah-red:    #c0392b;
    --gah-blue:   #1a2a4a;
    --gah-yellow: #fff59d;
    --gah-border: #c8c8c8;
    --gah-lbl-bg: #f2f2f2;
    --gah-row-hover: #fafafa;
    --gah-font:   Arial, "Helvetica Neue", sans-serif;
}

/* ---- Wrapper ---- */
.gah-form-wrap {
    max-width: 820px;
    margin: 24px auto;
    font-family: var(--gah-font);
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--gah-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.gah-login-notice {
    padding: 20px;
    background: #fff8e1;
    border-left: 4px solid var(--gah-red);
    margin: 20px;
}

/* ---- Header ---- */
.gah-header {
    padding: 0;
    background: #fff;
}

.gah-logo-area {
    display: flex;
    align-items: center;
    padding: 16px 24px 8px;
    gap: 14px;
}

.gah-eagle {
    font-size: 32px;
    color: var(--gah-blue);
}

.gah-brand {
    display: flex;
    flex-direction: column;
}

.gah-brand-name {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--gah-blue);
    text-transform: uppercase;
}

.gah-brand-sub {
    font-size: 11px;
    color: #666;
    font-style: italic;
    letter-spacing: 1px;
}

.gah-divider-red {
    height: 3px;
    background: var(--gah-red);
    margin: 4px 0 2px;
}

.gah-divider-blue {
    height: 2px;
    background: var(--gah-blue);
    margin-bottom: 12px;
}

/* ---- Wire Type Selector ---- */
.gah-type-selector {
    display: flex;
    margin: 0;
    border-bottom: 3px solid var(--gah-blue);
}

.gah-type-btn {
    flex: 1;
    padding: 14px 8px;
    font-family: var(--gah-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    background: #e8eaf0;
    color: #555;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid #ccc;
}

.gah-type-btn:last-child {
    border-right: none;
}

.gah-type-btn:hover:not(.gah-type-active) {
    background: #d0d4e0;
}

.gah-type-btn.gah-type-active.gah-type-intl {
    background: var(--gah-blue);
    color: #fff;
}

.gah-type-btn.gah-type-active.gah-type-dom {
    background: var(--gah-red);
    color: #fff;
}

/* ---- Form Title ---- */
.gah-form-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--gah-blue);
    margin: 0;
    padding: 6px 0;
    text-decoration: underline;
    letter-spacing: 1px;
}

.gah-form-subtitle {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #111;
    margin: 0;
    padding: 8px 0 14px;
}

/* ---- Data Table ---- */
.gah-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.gah-table tr:hover {
    background: var(--gah-row-hover);
}

.gah-table td {
    padding: 5px 10px;
    border: 1px solid var(--gah-border);
    vertical-align: middle;
}

.gah-lbl {
    width: 38%;
    background: var(--gah-lbl-bg);
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

.gah-remark {
    width: 30%;
    color: #666;
    font-size: 11px;
    text-align: right;
}

/* ---- Inputs ---- */
.gah-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: var(--gah-font);
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color .15s;
}

.gah-input:focus {
    outline: none;
    border-color: var(--gah-blue);
    box-shadow: 0 0 0 2px rgba(26,42,74,.12);
}

.gah-input-money {
    width: 180px;
    text-align: right;
    font-weight: bold;
}

.gah-readonly {
    background: #f9f9f9;
    color: #555;
    cursor: default;
}

.gah-highlight {
    background: var(--gah-yellow) !important;
    font-weight: bold;
}

input.gah-highlight:focus {
    background: #fff8b0 !important;
}

.gah-select {
    padding: 5px 8px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: var(--gah-font);
    font-size: 13px;
    background: #fff;
    min-width: 180px;
}

.gah-dollar {
    font-size: 13px;
    color: #444;
    margin-right: 3px;
}

/* ---- Section Headers ---- */
.gah-section-header {
    background: var(--gah-blue);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Intermediary Toggle ---- */
.gah-section-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8edf5;
    border: 1px solid #b0bdd4;
    padding: 7px 12px;
    margin: 2px 0;
}

.gah-section-label {
    font-weight: bold;
    font-size: 12px;
    color: var(--gah-blue);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.gah-toggle-btn {
    background: var(--gah-blue);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}

.gah-toggle-btn:hover {
    background: #263d6e;
}

.gah-collapsible {
    overflow: hidden;
    transition: max-height .25s ease;
}

/* ---- Actions ---- */
.gah-form-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.gah-btn {
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .15s, opacity .15s;
}

.gah-btn-primary {
    background: var(--gah-red);
    color: #fff;
    border: 2px solid var(--gah-red);
}

.gah-btn-primary:hover {
    background: #a93226;
    border-color: #a93226;
}

.gah-btn-secondary {
    background: #fff;
    color: var(--gah-blue);
    border: 2px solid var(--gah-blue);
}

.gah-btn-secondary:hover {
    background: #e8edf5;
}

.gah-btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    background: var(--gah-blue);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.gah-btn-sm:hover {
    background: #263d6e;
}

.gah-btn:disabled,
.gah-btn[disabled] {
    opacity: .6;
    cursor: default;
}

/* ---- Messages ---- */
.gah-message {
    margin: 0 16px 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}

.gah-message.success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

.gah-message.error {
    background: #ffebee;
    border-left: 4px solid var(--gah-red);
    color: #b71c1c;
}

/* ---- Confirmation Block ---- */
.gah-confirm-table {
    margin: 16px;
    width: calc(100% - 32px);
}

.gah-confirm-val {
    font-weight: bold;
    font-size: 15px;
    color: var(--gah-blue);
    letter-spacing: 1px;
}

/* ---- History Table ---- */
.gah-history-wrap {
    overflow-x: auto;
    padding: 16px;
}

.gah-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.gah-history-table th {
    background: var(--gah-blue);
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gah-history-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.gah-history-table tr:hover td {
    background: #f5f8ff;
}

.gah-mono {
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.gah-badge {
    background: var(--gah-blue);
    color: #fff;
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .5px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .gah-lbl { width: 44%; }
    .gah-input-money { width: 130px; }
    .gah-form-actions { flex-direction: column; }
    .gah-btn { width: 100%; text-align: center; }
    .gah-brand-name { font-size: 13px; letter-spacing: 1px; }
}

/* ---- Required field indicator ---- */
.gah-required {
    border-left: 3px solid var(--gah-red);
}

/* ---- Saved Recipient Bar ---- */
.gah-recipient-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #eef2f9;
    border: 1px solid #b0bdd4;
    border-bottom: none;
    flex-wrap: wrap;
}

.gah-recipient-label {
    font-weight: bold;
    font-size: 12px;
    color: var(--gah-blue);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.gah-recipient-select {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    background: #fff;
}

.gah-recipient-hint {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

/* flash animation when fields are auto-filled */
@keyframes gah-fill-flash {
    0%   { background-color: #c8e6c9; }
    100% { background-color: inherit; }
}
.gah-field-filled {
    animation: gah-fill-flash 0.8s ease-out;
}

/* ---- Save as Recipient bar (confirmation block) ---- */
.gah-save-recipient-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f0f7ff;
    border: 1px dashed #90b4d8;
    border-radius: 4px;
    flex-wrap: wrap;
}

.gah-save-recipient-label {
    font-size: 12px;
    font-weight: bold;
    color: var(--gah-blue);
    white-space: nowrap;
}
