/**
 * LiqPay Subscription Form Styles
 */

/* Banner placeholder */
.subscribe-banner {
    margin-bottom: 3rem;
}

.banner-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .banner-placeholder {
        height: 300px;
    }
}

/* Intro text */
.subscribe-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.subscribe-intro p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form wrapper */
.subscribe-form-wrapper {
    max-width: 480px;
    margin: 0 auto 3rem;
}

/* Form container */
.liqpay-subscribe-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.95rem;
}

/* Periodicity radio cards */
.periodicity-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: block;
    padding: 1rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-card input:checked + .radio-card-content {
    border-color: #c5a44a;
    background: rgba(197, 164, 74, 0.08);
}

.radio-card:hover .radio-card-content {
    border-color: #c5a44a;
}

.radio-card-title {
    font-weight: 600;
    color: #333;
}

/* Amount presets */
.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: #c5a44a;
}

.amount-btn.active {
    border-color: #c5a44a;
    background: rgba(197, 164, 74, 0.08);
    color: #c5a44a;
}

/* Custom amount input */
.amount-custom {
    position: relative;
}

.amount-custom input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease;
    color: #333;
    background: #fff;
}

.amount-custom input:focus {
    outline: none;
    border-color: #c5a44a;
}

.currency-label {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #666;
}

/* Email input */
#email {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    color: #333;
    background: #fff;
}

#email:focus {
    outline: none;
    border-color: #c5a44a;
}

#email::placeholder {
    color: #aaa;
}

/* Submit button */
.subscribe-submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #c5a44a 0%, #b8963d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscribe-submit-btn:hover {
    background: linear-gradient(135deg, #b8963d 0%, #a68530 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 164, 74, 0.3);
}

.subscribe-submit-btn:active {
    transform: translateY(0);
}

.subscribe-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscribe-submit-btn.loading {
    position: relative;
    color: transparent;
}

.subscribe-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disclaimer */
.subscribe-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.subscribe-disclaimer p {
    margin: 0 0 0.75rem;
}

.subscribe-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Form validation states */
.form-group.has-error input,
.form-group.has-error .radio-card-content {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Success message */
.subscribe-success {
    text-align: center;
    padding: 2rem;
}

.subscribe-success .icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.subscribe-success h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .liqpay-subscribe-form {
        padding: 1.5rem;
    }

    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .periodicity-options {
        grid-template-columns: 1fr;
    }
}
