:root {
    --primary-color: #f8a5c2;
    --secondary-color: #ffb7ce;
    --accent-color: #ff85a1;
    --text-color: #4a4a4a;
    --light-color: #fff9fb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: url('images/hearts-bg.svg');
    background-size: 200px;
    background-repeat: repeat;
    background-position: center;
}

.container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    margin: 0 auto;
    font-weight: 600;
}

button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.comfort-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.comfort-option {
    background-color: var(--light-color);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comfort-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.comfort-option input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 5px;
}

.comfort-option label {
    display: inline-block;
    margin-bottom: 10px;
}

.comfort-option input:checked + label {
    color: var(--accent-color);
    font-weight: bold;
}

.comfort-option input:checked + label::before {
    content: "❤️ ";
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.qty-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    margin: 0 5px;
    padding: 0;
    border-radius: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.confirmation-message {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 2px dashed var(--secondary-color);
}

#recipient-name {
    font-weight: bold;
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .comfort-options {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }
}