/* === Загальні стилі сайту === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    background: #f0f0f0;
}

/* === Стилі для форми === */
.custom-form {
    background: radial-gradient(circle, #444, #222);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%; /* Зроблено на всю ширину */
    max-width: 500px; /* Збільшено для кращого вигляду на великих екранах */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.custom-form h2, .custom-form p {
    color: white;
}

.custom-form .highlight {
    color: yellow;
    font-weight: bold;
}

.custom-form input {
    width: 100%;
    padding: 18px;
    margin: 12px 0;
    border: none;
    border-radius: 30px;
    text-align: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}

.custom-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.custom-form .quantity-btn, .custom-form .submit-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.custom-form .quantity-btn {
    background: #ccc;
    color: black;
    box-shadow: 0 4px 0 #999;
    position: relative;
}

.custom-form .quantity-btn::before {
    content: "🔽 ";
}

.custom-form .submit-btn {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: white;
    box-shadow: 0 6px 0 #c77f00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-form .submit-btn:hover {
    background: linear-gradient(to bottom, #ff9900, #ff6600);
    box-shadow: 0 8px 0 #b35f00;
    transform: translateY(-2px);
}

.custom-form .stock {
    margin-top: 18px;
    font-size: 16px;
    color: white;
}

.custom-form .stock span {
    background: white;
    color: black;
    padding: 6px 12px;
    border-radius: 50%;
    font-weight: bold;
}

.custom-form .discount-container {
    background: linear-gradient(to bottom, #ff3366, #cc0033);
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.custom-form .ak-border {
    background: white;
    color: black;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #cc0033;
    display: inline-block;
}

.custom-form .note {
    font-size: 14px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* === Таймер === */
.custom-timer {
    background: linear-gradient(to bottom, #444, #222);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 15px auto;
    width: 100%; /* Зроблено на всю ширину */
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.custom-timer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.7);
}

.custom-timer .timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.custom-timer .timer div {
    background: #ff3366;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 30px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    transform: perspective(500px) rotateX(0deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.custom-timer .timer div:nth-child(even) {
    background: #ff9900;
}

.custom-timer .timer div:hover {
    transform: scale(1.1) rotateY(10deg);
    background: #ff6600;
}

.custom-timer .timer div span {
    display: block;
    font-size: 16px;
    color: #fff;
}

.custom-timer .timer-label {
    font-size: 14px;
    margin-top: 3px;
    color: yellow;
}

/* === АДАПТАЦІЯ ПІД МОБІЛЬНІ === */
@media (max-width: 1024px) {
    .custom-form {
        max-width: 90%;
    }
    .custom-timer {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .custom-form {
        padding: 20px;
        max-width: 100%;
    }
    .custom-form h2 {
        font-size: 20px;
    }
    .custom-form .quantity-btn, .custom-form .submit-btn {
        font-size: 18px;
        padding: 18px;
    }
    .custom-timer {
        font-size: 16px;
        width: 90%;
        padding: 8px;
    }
    .custom-timer .timer div {
        font-size: 16px;
        padding: 6px 10px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .custom-form {
        padding: 15px;
        max-width: 100%;
    }
    .custom-form .quantity-btn, .custom-form .submit-btn {
        font-size: 16px;
        padding: 15px;
    }
    .custom-timer {
        font-size: 14px;
        padding: 6px;
        width: 100%; /* 100% для мобільного */
        max-width: 100%;
    }
    .custom-timer .timer div {
        font-size: 14px;
        padding: 4px 8px;
        min-width: 30px;
    }
    .custom-timer .timer-label {
        font-size: 12px;
    }
}
