/* ============================================
   Western Union Track Transfer - Final CSS
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

/* ============================================
   Header Styles
   ============================================ */

.wu-header {
    background-color: #000;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wu-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.wu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.wu-logo svg {
    width: 28px;
    height: 28px;
}

.wu-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.wu-nav {
    display: flex;
    gap: 50px;
    flex: 1;
    justify-content: flex-end;
}

.wu-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.wu-nav-link:hover {
    color: #FFD700;
}

.wu-nav-link.active {
    color: #FFD700;
}

/* Hamburger Menu */
.wu-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.wu-hamburger span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* ============================================
   Main Content Area
   ============================================ */

.wu-main {
    background-color: #fff;
    min-height: calc(100vh - 60px);
    padding: 50px 40px;
}

.wu-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Page Title */
.wu-page-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #000;
}

/* ============================================
   Tabs Section
   ============================================ */

.wu-tabs-wrapper {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
}

.wu-tabs {
    display: flex;
    gap: 80px;
    max-width: 700px;
}

.wu-tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #0066cc;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.wu-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.wu-tab.wu-tab-active {
    color: #000;
}

.wu-tab.wu-tab-active::after {
    background-color: #000;
}

.wu-tab:hover {
    color: #000;
}

/* ============================================
   Form Wrapper
   ============================================ */

.wu-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.wu-form-content {
    padding: 20px 0;
}

/* Form Description */
.wu-form-description-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.wu-form-description {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin: 0;
}

.wu-info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Form Styles
   ============================================ */

.wu-track-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* MTCN Digit Inputs */
.wu-mtcn-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wu-digit-input {
    width: 40px;
    height: 40px;
    padding: 8px;
    font-size: 18px;
    text-align: center;
    border: none;
    border-bottom: 2px solid #ddd;
    background-color: transparent;
    transition: border-color 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.wu-digit-input:focus {
    outline: none;
    border-bottom-color: #000;
}

.wu-digit-input::placeholder {
    color: #999;
}

.wu-digit-input-error {
    border-bottom-color: #dc3545;
}

.wu-digit-separator {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    margin: 0 2px;
}

/* Form Error */
.wu-form-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #dc3545;
    font-size: 13px;
    margin-top: -5px;
    margin-bottom: 10px;
}

.wu-error-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Button Styles
   ============================================ */

.wu-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

/* Primary Button (Yellow) */
.wu-btn-primary {
    background-color: #FFD700;
    color: #000;
    width: 100%;
}

.wu-btn-primary:hover:not(:disabled) {
    background-color: #FFC700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.wu-btn-primary:active:not(:disabled) {
    background-color: #FFB700;
    transform: translateY(1px);
}

.wu-btn-primary:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Secondary Button (Outlined) */
.wu-btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    width: 100%;
}

.wu-btn-secondary:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #000;
}

.wu-btn-secondary:active:not(:disabled) {
    background-color: #eee;
}

.wu-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.wu-spinner {
    width: 18px;
    height: 18px;
    animation: wu-spin 1s linear infinite;
}

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

/* ============================================
   Alert Styles
   ============================================ */

.wu-alert {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.wu-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wu-alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #155724;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .wu-header-container {
        padding: 12px 20px;
    }

    .wu-nav {
        display: none;
    }

    .wu-hamburger {
        display: flex;
    }

    .wu-main {
        padding: 30px 20px;
    }

    .wu-page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .wu-tabs {
        gap: 40px;
    }

    .wu-tab {
        font-size: 13px;
        padding: 10px 0;
    }

    .wu-mtcn-inputs {
        gap: 8px;
    }

    .wu-digit-input {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .wu-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .wu-container {
        padding: 0 12px;
    }

    .wu-page-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .wu-tabs {
        gap: 20px;
    }

    .wu-tab {
        font-size: 12px;
        padding: 8px 0;
    }

    .wu-form-wrapper {
        padding: 0;
    }

    .wu-mtcn-inputs {
        gap: 6px;
    }

    .wu-digit-input {
        width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 6px;
    }

    .wu-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }

    .wu-alert {
        padding: 12px;
        font-size: 13px;
    }

    .wu-form-description-wrapper {
        gap: 8px;
    }

    .wu-form-description {
        font-size: 13px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.wu-nav-link:focus,
.wu-tab:focus,
.wu-btn:focus,
.wu-digit-input:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .wu-digit-input {
        border-bottom-width: 3px;
    }

    .wu-btn {
        border-width: 2px;
    }
}

/* Remove focus outline on digit inputs */
.wu-digit-input:focus {
    outline: none;
    border-bottom-color: #000;
    box-shadow: none;
}

/* Form group styles for "Track without MTCN" form */
.wu-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.wu-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.wu-form-input {
    padding: 12px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #ddd;
    background-color: transparent;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.wu-form-input:focus {
    outline: none;
    border-bottom-color: #000;
    box-shadow: none;
}

.wu-form-input::placeholder {
    color: #999;
}



/* MTCN Input Wrapper */
.wu-mtcn-input-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

/* Single MTCN Input - Full Width Modern Design */
.wu-mtcn-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.wu-mtcn-input:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.wu-mtcn-input::placeholder {
    color: #999;
    letter-spacing: 0;
}

.wu-mtcn-input-error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.wu-mtcn-input-error:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Form error message styling */
.wu-form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border-radius: 4px;
}

.wu-error-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wu-mtcn-input {
        padding: 14px 16px;
        font-size: 15px;
    }
}
