* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #815542;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.ups-shield {
    color: #815542;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: lowercase;
    margin-right: 1rem;
}

.ups-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #d6ac2e;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: #d6ac2e;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #c5a526;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #815542;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #815542;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.forms-section {
    margin-bottom: 3rem;
}

.forms-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #815542;
    margin: 0;
    border-bottom: 2px solid #d6ac2e;
    padding-bottom: 0.5rem;
    flex: 1;
}

.parcel-logo {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}

.parcel-box {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 5px;
}

.box-front {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #815542;
    border: 2px solid #6b453a;
    border-radius: 3px;
    box-shadow: 2px 2px #6b453a;
}

.box-top {
    position: absolute;
    width: 50px;
    height: 10px;
    background-color: #d6ac2e;
    top: -5px;
    left: 0;
    border-radius: 3px 3px 0 0;
    transform: perspective(20px) rotateX(45deg);
}

.box-side {
    position: absolute;
    width: 10px;
    height: 50px;
    background-color: #c5a526;
    right: -5px;
    top: 0;
    border-radius: 0 3px 3px 0;
    transform: perspective(20px) rotateY(-45deg);
}

.ups-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    z-index: 10;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.tracking-section {
    background-color: #f8f9fa;
    border: 2px solid #d6ac2e;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tracking-display {
    background-color: #e9ecef;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #815542;
    text-align: center;
    letter-spacing: 1px;
}

.package-type-display {
    background-color: #815542;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    border: 2px solid #d6ac2e;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem;
    border-left: 4px solid #d6ac2e;
    padding-left: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-label {
    margin-top: 8px;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d6ac2e;
    box-shadow: 0 0 0 3px rgba(214, 172, 46, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c !important;
    background-color: #ffeaea;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

#cardNumber {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

#cvv {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

#expirationDate {
    text-align: center;
    font-family: 'Courier New', monospace;
}

.card-icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-icon {
    width: 32px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.visa {
    background-color: #1a1f71;
}

.mastercard {
    background-color: #eb001b;
}

.amex {
    background-color: #006fcf;
}

.discover {
    background-color: #ff6000;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: #403333;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #d6ac2e;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #d6ac2e;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive logo styles */
.ups-logo {
    width: 48px;
    height: auto;
    transition: all 0.3s ease;
}

/* Fix for red inputs on first load */
.form-input:not(:focus):not(.error),
.form-select:not(:focus):not(.error),
.form-textarea:not(:focus):not(.error) {
    border-color: #e0e0e0;
}

/* Make Parcel Information form smaller on all screen sizes */
.parcel-form-card {
    max-width: 100%;
}

/* Mobile-first approach for form ordering */
.forms-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Desktop layout */
@media (min-width: 992px) {
    .forms-container {
        /* display: grid; */
        grid-template-columns: 1fr 1.5fr;
    }
    
    /* Make Parcel Information appear first on mobile, second on desktop */
    .forms-container .form-card:first-child {
        order: 2;
    }
    
    .forms-container .form-card:last-child {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .auth-buttons {
        order: 1;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Medium screens logo */
    .ups-logo {
        width: 48px;
    }
    
    /* Make Parcel Information appear first on mobile */
    .forms-container .form-card:first-child {
        order: 1;
    }
    
    .forms-container .form-card:last-child {
        order: 2;
    }
    
    /* Make Parcel Information form even smaller on mobile */
    .parcel-form-card {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Small screens logo */
    .ups-logo {
        width: 48px;
    }
    
    /* Make Parcel Information form compact on very small screens */
    .parcel-form-card {
        padding: 1rem;
    }
    
    .parcel-form-card .form-title-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .parcel-form-card .form-title {
        font-size: 1.3rem;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .ups-logo {
        width: 50px;
    }
}

.shipping-form {
    position: relative;
}

.form-input:focus + .form-label,
.form-select:focus + .form-label {
    color: #d6ac2e;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #333;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.message {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}