/**
 * Public-facing CSS
 */
.shopify-redirect-customer-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shopify-redirect-customer-form h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.shopify-redirect-form-description {
    margin-bottom: 15px;
    color: #666;
}

.shopify-redirect-customer-form .form-row {
    margin-bottom: 15px;
}

.shopify-redirect-customer-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.shopify-redirect-customer-form .required {
    color: #e2401c;
}

.shopify-redirect-customer-form input.input-text {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.shopify-redirect-customer-form input.input-text:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* Form validation styling */
.shopify-redirect-customer-form input.input-text.error {
    border-color: #e2401c;
}

.shopify-redirect-error-message {
    color: #e2401c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.shopify-redirect-customer-form input.input-text.error + .shopify-redirect-error-message {
    display: block;
}

/* Buy Now button styling */
.buy-now-button {
    background-color: #0073aa !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

.buy-now-button:hover {
    background-color: #005177 !important;
}

/* Responsive styles */
@media (min-width: 768px) {
    .shopify-redirect-customer-form {
        padding: 25px;
    }
    
    .shopify-redirect-customer-form .form-row {
        display: inline-block;
        width: 48%;
        margin-right: 3%;
    }
    
    .shopify-redirect-customer-form .form-row:last-child {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .shopify-redirect-customer-form {
        padding: 15px;
    }
}

/* Animation for form elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shopify-redirect-customer-form h3,
.shopify-redirect-form-description,
.shopify-redirect-customer-form .form-row {
    animation: fadeIn 0.4s ease-out forwards;
}

.shopify-redirect-customer-form h3 {
    animation-delay: 0.1s;
}

.shopify-redirect-form-description {
    animation-delay: 0.2s;
}

.shopify-redirect-customer-form .form-row:nth-child(3) {
    animation-delay: 0.3s;
}

.shopify-redirect-customer-form .form-row:nth-child(4) {
    animation-delay: 0.4s;
}