/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: relative;
}

/* Banner styles */
.banner {
    margin: -30px -30px 30px -30px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto; /* ini yang bikin gambar di tengah */
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    color: #202124;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

header p {
    color: #5f6368;
    font-size: 16px;
}

/* Shipping options grid */
.shipping-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.shipping-card {
    position: relative;
}

.shipping-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.shipping-card label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.shipping-card label:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shipping-card input[type="radio"]:checked + label {
    border-color: #1a73e8;
    background-color: #e8f0fe;
}

.shipping-card input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #1a73e8;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.logo-container {
    margin-right: 16px;
    flex-shrink: 0;
}

.logo-container img {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.shipping-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #202124;
}

.shipping-info p {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 2px;
}

.shipping-info .price {
    font-weight: 700;
    color: #1a73e8;
    margin-top: 4px;
}

/* Action buttons */
.actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .banner {
        margin: -20px -20px 20px -20px;
    }
    
    .shipping-options {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary {
        width: 100%;
    }
}