/**
 * Canary Connect - Customer Registration Styles
 * Version 1.0.0
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --cc-primary: #00BFA5;
    --cc-primary-dark: #00a08a;
    --cc-secondary: #1A2B3C;
    --cc-bg-light: #f5f7fa;
    --cc-text: #333;
    --cc-text-light: #666;
    --cc-border: #e0e0e0;
    --cc-error: #e74c3c;
    --cc-success: #27ae60;
    --cc-radius: 12px;
    --cc-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Page Layout
   ============================================ */
.cc-customer-register-page {
    background: var(--cc-bg-light);
    min-height: 100vh;
}

.cc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.cc-customer-hero {
    background: linear-gradient(135deg, var(--cc-secondary) 0%, #2c3e50 100%);
    color: white;
    padding: 50px 0 60px;
    text-align: center;
}

.cc-customer-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: white;
}

.cc-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 30px;
}

.cc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.cc-stat {
    text-align: center;
}

.cc-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cc-primary);
}

.cc-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   Form Section
   ============================================ */
.cc-register-form-section {
    padding: 0 0 40px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.cc-register-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: 40px;
}

/* ============================================
   Progress Bar
   ============================================ */
.cc-progress-container {
    margin-bottom: 30px;
    text-align: center;
}

.cc-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cc-progress-fill {
    height: 100%;
    background: var(--cc-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cc-step-counter {
    font-size: 0.9rem;
    color: var(--cc-text-light);
    margin-bottom: 4px;
}

.cc-step-counter .cc-current-step {
    color: var(--cc-primary);
    font-weight: 700;
}

.cc-step-title {
    font-size: 0.9rem;
    color: var(--cc-text-light);
    font-weight: 400;
    margin: 0;
}

/* ============================================
   Step Headings
   ============================================ */
.cc-step-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cc-secondary);
    margin: 0 0 8px;
    text-align: center;
}

.cc-step-description {
    color: var(--cc-text-light);
    text-align: center;
    margin: 0 0 28px;
    font-size: 0.95rem;
}

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

.cc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--cc-text);
    font-size: 0.95rem;
}

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

.cc-form-group input[type="text"],
.cc-form-group input[type="email"],
.cc-form-group input[type="password"],
.cc-form-group input[type="tel"],
.cc-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cc-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.cc-form-group input:focus,
.cc-form-group select:focus {
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15);
    outline: none;
}

.cc-form-group input.cc-input-error {
    border-color: var(--cc-error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.cc-field-error {
    display: none;
    color: var(--cc-error);
    font-size: 0.85rem;
    margin-top: 4px;
}

.cc-field-hint {
    display: block;
    color: var(--cc-text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Form Row (side by side) */
.cc-form-row {
    display: flex;
    gap: 16px;
}

.cc-form-group.cc-half {
    flex: 1;
}

/* Phone Input */
.cc-phone-input {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--cc-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-phone-input:focus-within {
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15);
}

.cc-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--cc-text);
    border-right: 2px solid var(--cc-border);
    font-size: 0.95rem;
}

.cc-phone-input input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
}

.cc-phone-input input:focus {
    box-shadow: none !important;
    border: none !important;
}

/* Password Input */
.cc-password-input {
    position: relative;
}

.cc-password-input input {
    padding-right: 50px !important;
}

.cc-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cc-text-light);
    padding: 4px;
}

.cc-toggle-password:hover {
    color: var(--cc-primary);
}

/* Checkbox */
.cc-checkbox-group {
    margin-top: 8px;
}

.cc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--cc-text);
    line-height: 1.4;
}

.cc-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--cc-primary);
}

.cc-terms-agreement {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cc-border);
}

.cc-terms-agreement a {
    color: var(--cc-primary);
    text-decoration: underline;
}

/* ============================================
   Navigation Buttons
   ============================================ */
.cc-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--cc-border);
}

.cc-nav-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cc-prev-btn {
    background: transparent;
    color: var(--cc-text-light);
    padding-left: 0;
}

.cc-prev-btn:hover {
    color: var(--cc-text);
}

.cc-next-btn,
.cc-submit-btn {
    background: var(--cc-primary);
    color: white;
    margin-left: auto;
}

.cc-next-btn:hover,
.cc-submit-btn:hover {
    background: var(--cc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.cc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Form Messages
   ============================================ */
.cc-form-messages {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.cc-msg-error {
    background: #fef0f0;
    color: var(--cc-error);
    border: 1px solid #f5c6cb;
}

.cc-msg-success {
    background: #f0fef4;
    color: var(--cc-success);
    border: 1px solid #c3e6cb;
}

/* ============================================
   Success Screen
   ============================================ */
.cc-success-screen {
    text-align: center;
    padding: 20px 0;
}

.cc-success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.cc-success-screen h2 {
    font-size: 1.8rem;
    color: var(--cc-secondary);
    margin: 0 0 12px;
}

.cc-success-message {
    color: var(--cc-text-light);
    font-size: 1.05rem;
    margin: 0 0 30px;
}

.cc-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.cc-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cc-btn-primary {
    background: var(--cc-primary);
    color: white;
}

.cc-btn-primary:hover {
    background: var(--cc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
    color: white;
    text-decoration: none;
}

.cc-btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
}

.cc-btn-secondary {
    background: transparent;
    color: var(--cc-text-light);
    border: 2px solid var(--cc-border);
}

.cc-btn-secondary:hover {
    border-color: var(--cc-text-light);
    color: var(--cc-text);
    text-decoration: none;
}

/* Features list */
.cc-success-features {
    background: var(--cc-bg-light);
    border-radius: 8px;
    padding: 20px 24px;
    text-align: left;
}

.cc-success-features h4 {
    font-size: 0.95rem;
    color: var(--cc-text);
    margin: 0 0 12px;
}

.cc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-feature-list li {
    padding: 6px 0;
    color: var(--cc-text);
    font-size: 0.9rem;
}

/* ============================================
   Login Link
   ============================================ */
.cc-login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cc-border);
}

.cc-login-link p {
    color: var(--cc-text-light);
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.cc-login-link a {
    color: var(--cc-primary);
    font-weight: 600;
    text-decoration: none;
}

.cc-login-link a:hover {
    text-decoration: underline;
}

.cc-vendor-link {
    font-size: 0.85rem !important;
}

/* ============================================
   Trust Badges
   ============================================ */
.cc-trust-section {
    padding: 30px 0 50px;
}

.cc-trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.cc-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-badge-icon {
    font-size: 1.2rem;
}

.cc-badge-text {
    font-size: 0.9rem;
    color: var(--cc-text-light);
    font-weight: 500;
}

/* ============================================
   Step Animations
   ============================================ */
.cc-step {
    animation: ccFadeIn 0.3s ease;
}

@keyframes ccFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .cc-customer-hero {
        padding: 35px 0 50px;
    }

    .cc-customer-hero h1 {
        font-size: 1.6rem;
    }

    .cc-hero-stats {
        gap: 25px;
    }

    .cc-stat-number {
        font-size: 1.5rem;
    }

    .cc-register-wrapper {
        padding: 28px 20px;
        margin: 0 8px;
        border-radius: 10px;
    }

    .cc-step-heading {
        font-size: 1.25rem;
    }

    .cc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cc-nav-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .cc-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cc-btn-large {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cc-customer-hero h1 {
        font-size: 1.3rem;
    }

    .cc-hero-subtitle {
        font-size: 0.95rem;
    }

    .cc-register-wrapper {
        padding: 24px 16px;
    }
}
