/* === Загальні стилі сайту === */
* {
    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: 0%; /* Прибрали відступи */
    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: 85%;
    padding: 5%;
    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: 5%;
    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 .submit-btn {
    position: relative;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: white;
    font-size: 21.8px; /* Збільшено на 9% */
    font-weight: bold;
    padding: 19.62px; /* Збільшено на 9% */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    overflow: hidden;
    width: 92.65%; /* Збільшено на 9% */
    margin: 15px auto 0 auto;
    white-space: nowrap;
    min-width: 218px; /* Збільшено на 9% */
    max-width: 100%;
}

/* Нова анімація світлового ефекту, що рухається зліва направо */
.custom-form .submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Лінія починається за межами кнопки */
    width: 100%; /* Тепер ширина 100% */
    height: 100%; /* Тепер висота на всю кнопку */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)); /* Біле світло */
    transform: translateY(0%); /* Залишаємо лінію по вертикалі */
    animation: lightEffect 3s ease-in-out infinite; /* Плавна анімація */
}

@keyframes lightEffect {
    0% {
        left: -100%; /* Початок анімації, лінія починається зліва */
    }
    50% {
        left: 0%; /* Світло проходить всю кнопку */
    }
    100% {
        left: 100%; /* Світло проходить до кінця кнопки */
    }
}

/* Стилі для кнопок при наведенні і натисканні */
.custom-form .submit-btn:hover {
    background: linear-gradient(to bottom, #ff9900, #ff6600);
    box-shadow:
        0 8px 0 #b35f00,
        0 16px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.custom-form .submit-btn:active {
    transform: translateY(6px);
    box-shadow:
        0 4px 0 #b35f00,
        inset 0 -4px 6px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Відображення залишку товару */
.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);
}

/* Медіа-запити для зменшення шрифту на малих екранах */
@media (max-width: 1024px) {
    .custom-form .submit-btn {
        font-size: 20px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .custom-form .submit-btn {
        font-size: 18px;
        padding: 16px;
    }
    .custom-form input {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .custom-form .submit-btn {
        font-size: 16px;
        padding: 14px;
    }
    .custom-form input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-form .submit-btn {
        font-size: 14px;
        padding: 12px;
    }
    .custom-form input {
        font-size: 14px;
    }
}

/* Анімація пульсації */
@keyframes pulse {
    0% {
        transform: scale(1); /* Початковий розмір кнопки */
    }
    50% {
        transform: scale(1.05); /* Збільшення на 5% */
    }
    100% {
        transform: scale(1); /* Повернення до початкового розміру */
    }
}

/* Додаємо анімацію до кнопки */
.custom-form .submit-btn {
    position: relative;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: white;
    font-size: 21.8px; /* Збільшено на 9% */
    font-weight: bold;
    padding: 19.62px; /* Збільшено на 9% */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    overflow: hidden;
    width: 85%; /* Збільшено на 9% */
    margin: 15px auto 0 auto;
    white-space: nowrap;
    min-width: 218px; /* Збільшено на 9% */
    max-width: 100%;
    animation: pulse 2s infinite; /* Додаємо пульсацію */
}
