/* === Загальні стилі сайту === */
* {
    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: 24px; /* Менша кнопка */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    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: "🔽 ";
}

/* Анімація пульсації */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 0 #c77f00;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(255, 153, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 0 #c77f00;
    }
}

/* Кнопка з косою лінією та пульсацією */
.custom-form .submit-btn {
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: white;
    box-shadow: 0 8px 0 #c77f00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    
    /* Анімація пульсації */
    animation: pulse 1.5s infinite;

    position: relative;
    overflow: hidden;
}

/* Косий блиск */
.custom-form .submit-btn::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(70deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
    transform: rotate(0deg);
    transition: all 0.3s ease;
    animation: shine 2.5s infinite linear;
}

/* Косий блиск рухається */
@keyframes shine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

.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: 768px) {
    .custom-form {
        padding: 20px;
        max-width: 100%;
    }
    .custom-form .submit-btn {
        padding: 27.3px;
        font-size: 22px;
    }
    .custom-timer {
        font-size: 16px;
        width: 90%;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .custom-form {
        padding: 15px;
        max-width: 100%;
    }
    .custom-form .submit-btn {
        padding: 30.5px;
        font-size: 24px;
    }
    .custom-timer {
        font-size: 14px;
        padding: 6px;
        width: 100%;
        max-width: 100%;
    }
}
