
:root{
    --brand:#3b2118;
    --brand-2:#512d20;
    --accent:#ffb600;
    --accent-hover:#e7a300;
    --ink:#211815;
    --muted:#6f6965;
    --bg:#f4f5f6;
    --surface:#fff;
    --border:#e7e3df;
    --success:#237a3b;
    --success-bg:#eaf6ed;
    --warning:#8a5410;
    --warning-bg:#fff6e5;
    --shadow:0 10px 35px rgba(38,25,20,.08);
    --shadow-hover:0 14px 40px rgba(38,25,20,.12);
    --radius:12px;
    --font-family:Inter,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth}

body{
    min-height:100vh;
    font-family:var(--font-family);
    background:
        radial-gradient(circle at 15% 0%,rgba(255,182,0,.07),transparent 30%),
        var(--bg);
    color:var(--ink);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}

button,input,select,textarea{font:inherit}

/* Header */
.ups-header{
    min-height:72px;
    padding:0 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    color:#fff;
    background:linear-gradient(110deg,var(--brand),#2d1913);
    box-shadow:0 2px 18px rgba(0,0,0,.12);
    position:relative;
    z-index:10;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevents unwanted horizontal scroll */
}

footer.footer {
  width: 100vw;              /* full viewport width */
  max-width: 100vw;          /* never larger than screen */
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;    /* padding/border stay inside width */
  position: relative;        /* stays in flow */
}

.ups-header::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:3px;
    background:var(--accent);
}

.ups-logo{
    height:38px;
    width:auto;
    object-fit:contain;
}

.ups-header-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:26px;
    flex:1;
}

.ups-search{
    display:flex;
    align-items:center;
    height:42px;
    min-width:310px;
    overflow:hidden;
    background:#fff;
    border:1px solid rgba(255,255,255,.25);
    border-radius:7px;
    box-shadow:0 3px 12px rgba(0,0,0,.12);
}

.ups-search input{
    flex:1;
    min-width:0;
    height:100%;
    padding:0 14px;
    border:0;
    outline:0;
    background:#fff;
    color:var(--ink);
    font-size:14px;
}

.ups-search button{
    height:100%;
    padding:0 18px;
    border:0;
    background:var(--accent);
    color:var(--brand);
    font-weight:800;
    cursor:pointer;
    transition:background .18s ease;
}

.ups-search button:hover{background:var(--accent-hover)}

.ups-nav-links{
    display:flex;
    align-items:center;
    gap:22px;
    font-size:14px;
    font-weight:650;
}

.ups-nav-links a{
    color:#fff;
    opacity:.9;
    transition:opacity .18s ease;
}

.ups-nav-links a:hover{opacity:1}

/* Layout */
.container{
    width:min(960px,calc(100% - 40px));
    margin:42px auto;
}

.card,.tracking-card{
    position:relative;
    background:var(--surface);
    border:1px solid rgba(59,33,24,.06);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:38px;
    margin-bottom:24px;
    overflow:hidden;
}

.card::before,.tracking-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--accent),#ffd66d);
}

.card h1,.card h2,.tracking-card h1,.tracking-card h2{
    color:var(--ink);
    letter-spacing:-.02em;
    line-height:1.2;
    margin-bottom:12px;
}

.card h2,.tracking-card h2{font-size:27px}

/* Tracking details */
.tracking-number-display{
    display:inline-block;
    margin:3px 0 13px;
    font-size:25px;
    font-weight:800;
    letter-spacing:.035em;
    color:var(--brand);
}

.status-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:999px;
    background:var(--success-bg);
    color:var(--success);
    font-size:13px;
    font-weight:750;
    vertical-align:middle;
}

.status-badge::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--success);
}

.progress-steps{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin:34px 0 28px;
    position:relative;
}

.progress-steps::before{
    content:"";
    position:absolute;
    left:8%;
    right:8%;
    top:14px;
    height:2px;
    background:var(--accent);
    opacity:.9;
}

.step{
    position:relative;
    z-index:1;
    flex:1;
    text-align:center;
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}

.step-icon{
    width:30px;
    height:30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:8px;
    border-radius:50%;
    background:#eee9e5;
    color:var(--brand);
    border:3px solid var(--surface);
    box-shadow:0 0 0 1px var(--border);
}

.step.completed .step-icon{
    background:#43a85b;
    color:#fff;
    box-shadow:0 0 0 1px #43a85b;
}

.step.current .step-icon{
    background:var(--brand);
    color:#fff;
    box-shadow:0 0 0 1px var(--brand);
}

.alert-box{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:17px 18px;
    margin:22px 0;
    background:var(--warning-bg);
    border:1px solid #f1d49e;
    border-left:4px solid var(--accent);
    border-radius:8px;
    color:#493116;
}

.alert-box strong{color:#332014}

/* Buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 24px;
    border:0;
    border-radius:7px;
    background:var(--brand);
    color:#fff;
    font-size:15px;
    font-weight:750;
    letter-spacing:.01em;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(59,33,24,.15);
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}

.btn:hover{
    background:var(--brand-2);
    transform:translateY(-1px);
    box-shadow:var(--shadow-hover);
}

.btn-primary{
    background:var(--accent);
    color:var(--brand);
    text-transform:uppercase;
}

.btn-primary:hover{background:var(--accent-hover);color:var(--brand)}

.reschedule-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 30px;
    background:var(--accent);
    color:var(--brand);
    border-radius:7px;
    font-size:15px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.01em;
    box-shadow:0 5px 14px rgba(255,182,0,.2);
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}

.reschedule-btn:hover{
    background:var(--accent-hover);
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(255,182,0,.28);
}

/* Forms */
.form-group{margin-bottom:18px}

.form-group label{
    display:block;
    margin-bottom:7px;
    color:var(--brand);
    font-size:14px;
    font-weight:700;
}

.form-group input{
    width:100%;
    height:46px;
    padding:0 13px;
    border:1px solid var(--border);
    border-radius:7px;
    background:#fff;
    color:var(--ink);
    outline:0;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.form-group input:hover{border-color:#cfc6c0}

.form-group input:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(255,182,0,.14);
}

.row{
    display:flex;
    gap:22px;
    flex-wrap:wrap;
}

.col-md-6{
    flex:1;
    min-width:250px;
}

.error{
    margin-top:6px;
    color:#bd2727;
    font-size:13px;
    font-weight:600;
}

/* Footer */
.footer{
    margin-top:60px;
    padding:28px 20px;
    background:var(--brand);
    color:rgba(255,255,255,.78);
    text-align:center;
    font-size:12px;
    border-top:3px solid var(--accent);
}

/* Utility polish for common page content */
.muted{color:var(--muted)}
small{color:var(--muted)}

@media(max-width:820px){
    .ups-header{
        padding:14px 20px;
        align-items:flex-start;
    }

    .ups-header-right{
        width:100%;
        flex-wrap:wrap;
        justify-content:flex-start;
        gap:14px;
    }

    .ups-search{
        flex:1;
        min-width:260px;
    }

    .ups-nav-links{
        width:100%;
        flex-wrap:wrap;
    }
}

@media(max-width:600px){
    .ups-header{
        min-height:0;
        flex-direction:column;
        gap:14px;
    }

    .ups-logo{height:34px}

    .ups-header-right{
        margin:0;
        flex-direction:column;
        align-items:stretch;
    }

    .ups-search{width:100%;min-width:0}

    .ups-nav-links{
        justify-content:space-between;
        gap:10px;
        font-size:13px;
    }

    .container{
        width:min(100% - 24px,960px);
        margin:22px auto;
    }

    .card,.tracking-card{
        padding:24px 20px;
        border-radius:10px;
    }

    .tracking-number-display{font-size:21px}

    .progress-steps{
        flex-wrap:wrap;
        gap:18px 5px;
    }

    .progress-steps::before{display:none}

    .step{flex:0 0 calc(50% - 5px)}

    .alert-box{font-size:14px}

    .btn,.reschedule-btn{
        width:100%;
    }
}
