/* Subscription Form Specific Styles */

.subscription-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.subscription-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.subscription-form .form-group {
    margin-bottom: 25px;
}

.subscription-form label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.subscription-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.subscription-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.subscription-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.subscription-form .invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.subscription-form .form-check {
    margin-bottom: 0;
}

.subscription-form .form-check-input {
    margin-right: 10px;
}

.subscription-form .form-check-label {
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.subscription-form .default-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.subscription-form .default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.subscription-form .default-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success and Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-form-wrapper {
        padding: 25px 20px;
        margin: 15px 0;
    }
    
    .subscription-form .default-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .subscription-form h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Form Field Animations */
.subscription-form .form-control {
    position: relative;
    overflow: hidden;
}

.subscription-form .form-control::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: left 0.3s ease;
}

.subscription-form .form-control:focus::after {
    left: 0;
}

/* Country and Quantity Select Styling */
.subscription-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Special Instructions Textarea */
.subscription-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Radio Button Styling */
.subscription-form input[type="radio"] {
    margin-right: 8px;
}

.subscription-form input[type="radio"] + label {
    margin-right: 20px;
    display: inline-block;
}

/* Checkbox Styling */
.subscription-form input[type="checkbox"] {
    margin-right: 8px;
}

/* Loading State */
.subscription-form .default-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: none;
}

/* Form Section Spacing */
.subscription-form .row {
    margin-bottom: 0;
}

.subscription-form .col-md-6,
.subscription-form .col-md-3 {
    padding: 0 10px;
}

/* Enhanced Focus States */
.subscription-form .form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Placeholder Styling */
.subscription-form .form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Required Field Indicator */
.subscription-form label[for*="required"]::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form Validation Success State */
.subscription-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .subscription-form-wrapper {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .subscription-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .subscription-form .default-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}
