@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #334155;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    margin: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

/* Return form specific */
.container.return-form {
    max-width: 500px;
}

h1 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.75rem;
    color: #1e293b;
}

h2 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #1e293b;
    border-bottom: none;
    padding-bottom: 0;
}

h3 {
    margin: 0;
}

.subtitle {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}

input[type="number"],
select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.95em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="number"]:focus,
select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.5);
}

input::placeholder {
    color: #cbd5e1;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(180deg, #667eea 0%, #5568d3 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(180deg, #5568d3 0%, #4552be 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(1px);
}

.error-message {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 1.2em;
}

.info-box {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.info-icon {
    margin-right: 8px;
    color: #667eea;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.order-info span {
    font-size: 0.95rem;
    color: #64748b;
}

.order-info strong {
    color: #334155;
    font-weight: 500;
}

.products-list {
    margin-bottom: 30px;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.product-item:last-child {
    border-bottom: none;
}

.product-details {
    flex: 1 1 250px;
}

.product-name {
    font-weight: 500;
    color: #334155;
    margin-bottom: 4px;
}

.product-meta {
    font-size: 0.85em;
    color: #94a3b8;
}

.product-warning-hygienic {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 8px 10px;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex: 1 1 300px;
    align-items: center;
    justify-content: flex-end;
}

.qty-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 80px;
}

.reason-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.success-icon {
    font-size: 3em;
    margin-bottom: 16px;
    color: #22c55e;
}

/* Responsywność */
@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: 1 1 100%;
    }

    .qty-group, .reason-group {
        width: 100%;
        max-width: 100%;
    }

    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
