/* SL365 Registration Page Styles */

* {
    box-sizing: border-box;
}

body.page-template-sl365-register-template {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.sl365-registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sl365-registration-box {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sl365-logo h1 {
    font-size: 32px;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 700;
}

.sl365-logo h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 700;
}

.sl365-tagline {
    text-align: center;
    color: #777;
    font-size: 16px;
    margin-bottom: 30px;
}

.sl365-step {
    display: none;
}

.sl365-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sl365-form-group {
    margin-bottom: 20px;
}

.sl365-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.sl365-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sl365-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sl365-phone-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sl365-country-code {
    padding: 12px 16px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    min-width: 70px;
    text-align: center;
}

.sl365-phone-input-group .sl365-input {
    flex: 1;
}

.sl365-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sl365-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sl365-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.sl365-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sl365-btn-secondary {
    background: #f5f5f5;
    color: #666;
    margin-top: 10px;
}

.sl365-btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.sl365-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sl365-btn-checkout {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-size: 18px;
    padding: 16px 20px;
}

.sl365-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.sl365-otp-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.sl365-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.sl365-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
}

.sl365-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    display: block;
}

.sl365-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
    display: block;
}

.sl365-calendar-offer {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #ffb74d;
}

.sl365-offer-badge {
    background: #ff6f00;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sl365-calendar-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.sl365-calendar-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
}

.sl365-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sl365-checkbox-text strong {
    font-size: 16px;
    color: #e65100;
}

.sl365-checkbox-text small {
    font-size: 13px;
    color: #666;
}

.sl365-address-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

.sl365-address-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.sl365-india-notice {
    background: #e3f2fd;
    color: #1976d2;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #1976d2;
}

.sl365-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sl365-order-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.sl365-order-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.sl365-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #555;
}

.sl365-price del {
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.sl365-price strong {
    color: #e65100;
    font-size: 18px;
}

.sl365-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    margin-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: 700;
}

.sl365-total-price {
    font-size: 24px;
    color: #333;
}

.sl365-terms-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.sl365-terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.sl365-terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.sl365-terms-checkbox a {
    color: #667eea;
    text-decoration: underline;
}

.sl365-terms-checkbox a:hover {
    color: #764ba2;
}

/* Loading spinner */
.sl365-btn.loading {
    position: relative;
    color: transparent;
}

.sl365-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sl365-registration-box {
        padding: 30px 20px;
    }
    
    .sl365-logo h1,
    .sl365-logo h2 {
        font-size: 24px;
    }
    
    .sl365-form-row {
        grid-template-columns: 1fr;
    }
    
    .sl365-calendar-checkbox {
        flex-direction: column;
    }
}

/* Input validation states */
.sl365-input.invalid {
    border-color: #f44336;
}

.sl365-input.valid {
    border-color: #4CAF50;
}

/* Accessibility */
.sl365-input:focus-visible,
.sl365-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}