/* ==========================================================================
   123Ez.Biz Signup Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
	--color-gray-200: #d1d5db;
	--color-gray-300: #9ca3af;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 2px -1px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.centered-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.signup-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 520px) {
    .signup-container {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
}

/* --------------------------------------------------------------------------
   Plan Header
   -------------------------------------------------------------------------- */
.plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-gray-400);
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.plan-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.plan-price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.trial-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 8px 18px;
    border-radius: radius-xl;
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
    position: relative;
    padding-left: 32px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--color-gray-300);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--color-primary);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.terms-text {
    flex: 1;
}

.terms-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

.field-error {
    color: var(--color-error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.field-error.visible {
    display: block;
}

.checkbox-label.error .checkmark {
    border-color: var(--color-error);
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--color-gray-700);
}

label .required {
    color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-gray-500);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-gray-900);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-gray-600);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--color-gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

input.error,
select.error,
textarea.error {
    border-color: var(--color-error);
}

input.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* --------------------------------------------------------------------------
   Stripe Card Element
   -------------------------------------------------------------------------- */
#card-element {
    padding: 12px 14px;
    border: 2px solid var(--color-gray-500);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

#card-element.StripeElement--focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#card-element.StripeElement--invalid {
    border-color: var(--color-error);
}

#card-element.StripeElement--complete {
    border-color: var(--color-success);
}

#card-errors {
    color: var(--color-error);
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: 24px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: var(--color-gray-600);
    cursor: not-allowed;
}

.btn-submit.ready {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */
.error-message {
    background: var(--color-error-light);
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.error-message.visible,
.error-message[style*="display: block"] {
    display: block;
}

.success-message {
    background: var(--color-success-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.warning-message {
    background: var(--color-warning-light);
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Success Container
   -------------------------------------------------------------------------- */
.success-container {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon {
    background: var(--color-success);
}

.error-icon {
    background: var(--color-error);
}

.success-icon svg,
.error-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke: white;
}

/* --------------------------------------------------------------------------
   Terms
   -------------------------------------------------------------------------- */
.terms {
    font-size: 13px;
    color: var(--color-gray-700);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.terms a {
    color: var(--color-primary);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Helper Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--color-gray-600);
}

.text-small {
    font-size: 14px;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .plan-price {
        font-size: 36px;
    }
    
    .signup-container {
        padding: 24px 16px;
    }
}