/* Основной контейнер */
.purchase-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.purchase-container h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.purchase-container h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

/* Описание */
.purchase-container p {
    color: #5a6a7a;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Форма */
#pixel-purchase-form {
    margin-top: 30px;
}

/* Группы полей */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 1rem;
}

/* Поля ввода */
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Счетчик символов */
.char-count {
    text-align: right;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
}

.char-count span {
    font-weight: bold;
    color: #3498db;
}

/* Превью изображения */
.image-preview {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    border: 2px dashed #e0e6ed;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s;
}

.image-preview:hover {
    border-color: #3498db;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Кнопки */
#pay-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#pay-button:not(.active) {
    background-color: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
}

#pay-button.active:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.25);
}

#test-payment-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#test-payment-button:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.25);
}

/* Информационный блок */
.payment-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #5a6a7a;
    border-left: 4px solid #3498db;
}

.payment-info p {
    text-align: left;
    margin-bottom: 10px;
    font-size: 15px;
}

/* Индикатор загрузки */
#payment-processing {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

#payment-processing h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .purchase-container {
        padding: 25px;
        margin: 20px;
    }
    
    .purchase-container h1 {
        font-size: 1.8rem;
    }
}