/* ZoneMap Signup Page Styles */

.signup-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.signup-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.signup-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.signup-form {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.signup-features {
    padding: 3rem 3rem 3rem 3rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

/* Plan Options */
.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.plan-option {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-option:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option input[type="radio"]:checked + .plan-label {
    color: #1e40af;
}

.plan-option input[type="radio"]:checked ~ .plan-features {
    opacity: 1;
}

.plan-option:has(input[type="radio"]:checked) {
    border-color: #1e40af;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.plan-header {
    margin-bottom: 1rem;
}

.plan-label {
    cursor: pointer;
    display: block;
    text-align: center;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
}

.plan-features {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.plan-features li i {
    width: 1rem;
    margin-right: 0.5rem;
}

.plan-features li i.fa-check {
    color: #10b981;
}

.plan-features li i.fa-times {
    color: #ef4444;
}

/* Feature List */
.feature-list {
    space-y: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Signup Options */
.signup-options {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.signup-options h5 {
    color: white;
    margin-bottom: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.option-item i {
    width: 1.5rem;
    color: #fbbf24;
}

/* Form Controls */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group .btn {
    border: 2px solid #e5e7eb;
    border-left: none;
    background: white;
    color: #6b7280;
    transition: all 0.3s ease;
}

.input-group .btn:hover {
    background: #f8fafc;
    color: #374151;
}

.input-group .form-control:focus + .btn {
    border-color: #3b82f6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Agency Name Status */
#agencyNameStatus {
    font-size: 0.875rem;
    font-weight: 500;
}

#agencyNameStatus .text-success {
    color: #10b981 !important;
}

#agencyNameStatus .text-danger {
    color: #ef4444 !important;
}

#agencyNameStatus .text-warning {
    color: #f59e0b !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .signup-container {
        margin: 1rem;
    }
    
    .signup-form,
    .signup-features {
        padding: 2rem;
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Layout */
    .signup-page {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    }
    
    .signup-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .signup-container {
        margin: 0.5rem;
        border-radius: 0.75rem;
    }
    
    .signup-form,
    .signup-features {
        padding: 1.5rem;
    }
    
    /* Form Mobile */
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Plan Options Mobile */
    .plan-option {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .plan-name {
        font-size: 1.1rem;
    }
    
    .plan-price {
        font-size: 1.3rem;
    }
    
    .plan-features li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    /* Features Mobile */
    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-content h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    /* Signup Options Mobile */
    .signup-options {
        padding: 1rem;
    }
    
    .signup-options h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .option-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    /* Buttons Mobile */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile */
    .signup-section {
        padding: 0.5rem 0;
    }
    
    .signup-container {
        margin: 0.25rem;
        border-radius: 0.5rem;
    }
    
    .signup-form,
    .signup-features {
        padding: 1rem;
    }
    
    /* Form Extra Small */
    .form-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    /* Plan Options Extra Small */
    .plan-option {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .plan-name {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.2rem;
    }
    
    .plan-features li {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }
    
    /* Features Extra Small */
    .feature-item {
        margin-bottom: 0.75rem;
    }
    
    .feature-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-icon i {
        font-size: 0.9rem;
    }
    
    .feature-content h5 {
        font-size: 0.9rem;
    }
    
    .feature-content p {
        font-size: 0.8rem;
    }
    
    /* Signup Options Extra Small */
    .signup-options {
        padding: 0.75rem;
    }
    
    .signup-options h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .option-item {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    /* Buttons Extra Small */
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Input Groups Extra Small */
    .input-group .form-control {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
    
    .input-group .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Custom Scrollbar */
.signup-features::-webkit-scrollbar {
    width: 6px;
}

.signup-features::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.signup-features::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.signup-features::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
