:root {
    /* Primary Colors */
    --primary-color: #d4527c;
    --primary-hover: #e06898;
    --primary-light: #ffeef8;

    /* Background Colors */
    --bg-gradient-start: #ffeef8;
    --bg-gradient-end: #fff5f0;
    --bg-white: white;
    --bg-light: #fafafa;

    /* Border Colors */
    --border-color: #e0e0e0;
    --border-light: #ffeef8;

    /* Text Colors */
    --text-dark: #333;
    --text-medium: #666;

    /* Accent Colors */
    --warning-bg: #fff9e6;
    --warning-border: #ffc107;

    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-primary: rgba(212, 82, 124, 0.1);
    --shadow-primary-hover: rgba(212, 82, 124, 0.3);
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --primary-overlay: rgba(212, 82, 124, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: repeating-linear-gradient(
            45deg,
            var(--bg-gradient-start),
            var(--bg-gradient-start) 20px,
            var(--bg-gradient-end) 20px,
            var(--bg-gradient-end) 40px
    );
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-light);
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 0.95em;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.product-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.product-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px var(--shadow-primary);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.product-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.quantity-control label {
    margin: 0;
    font-weight: normal;
}

.quantity-control input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.delivery-option {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: var(--primary-color);
}

.delivery-option input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.delivery-option label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.info-box {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-medium);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-primary-hover);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-header {
        flex-wrap: wrap;
    }

    .quantity-control {
        margin-left: 30px;
    }
}

.required {
    color: var(--primary-color);
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-overlay);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-preview .remove-image:hover {
    background: var(--primary-color);
}

.image-preview .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--overlay-dark);
    color: white;
    font-size: 0.7em;
    padding: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-btn {
    background: #f0f0f0;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.upload-btn:hover {
    background: var(--primary-color);
    color: white;
}