/**
 * Create Listing Page Styles
 */

/* ========================================
   ACCOUNT TYPE SELECTION (STEP 0)
   ======================================== */

.account-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.account-type-card {
    cursor: pointer;
    display: block;
}

.account-type-card input[type="radio"] {
    display: none;
}

.type-card-content {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.account-type-card:hover .type-card-content {
    border-color: #3a9d82;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(58, 157, 130, 0.15);
}

.account-type-card input[type="radio"]:checked + .type-card-content {
    border-color: #3a9d82;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5f1 100%);
    box-shadow: 0 8px 32px rgba(58, 157, 130, 0.25);
}

.type-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.account-type-card input[type="radio"]:checked + .type-card-content .type-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(58, 157, 130, 0.4);
}

.type-icon i {
    font-size: 36px;
    color: white;
}

.type-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.type-card-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.feature-tag {
    font-size: 12px;
    font-weight: 600;
    color: #3a9d82;
    background: rgba(58, 157, 130, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.account-type-card input[type="radio"]:checked + .type-card-content .feature-tag {
    background: rgba(58, 157, 130, 0.2);
}

.btn-select-account-type {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    color: #fff;
    margin-left: auto;
}

.btn-select-account-type:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-select-account-type:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 157, 130, 0.4);
}

/* ========================================
   WRAPPER
   ======================================== */

.doa-create-listing-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   HERO SECTION
   ======================================== */

.doa-create-listing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px 40px;
    width: 100% !important;
    max-width: 100% !important;
}

.doa-create-listing-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0 0 10px;
    opacity: 0.95;
}

.hero-note {
    font-size: 14px;
    margin: 0 0 40px;
    opacity: 0.9;
}

.hero-note a:hover {
    opacity: 0.8;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 50%;
    left: calc(-100% + 50%);
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.progress-step:first-child::before {
    display: none;
}

.progress-step.completed::before,
.progress-step.active::before {
    background: #3a9d82;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: #3a9d82;
    box-shadow: 0 4px 12px rgba(58, 157, 130, 0.4);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
}

.progress-step.active .step-label {
    opacity: 1;
}

/* ========================================
   FORM SECTION
   ======================================== */

.doa-form-section {
    background: #f8f9fa;
    padding: 60px 20px 80px;
    min-height: 60vh;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.step-description {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3a9d82;
    box-shadow: 0 0 0 3px rgba(58, 157, 130, 0.1);
}

.form-group select {
    height: auto;
    min-height: 120px;
}

.form-group small {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.form-group textarea {
    resize: vertical;
}

/* Checkbox */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Specialties Checkboxes */
.specialties-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.specialty-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.specialty-checkbox:hover {
    border-color: #3a9d82;
    background: #f8f9fa;
}

.specialty-checkbox input[type="checkbox"] {
    margin: 0 10px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.specialty-checkbox input[type="checkbox"]:checked {
    accent-color: #3a9d82;
}

.specialty-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #3a9d82;
}

.specialty-checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.specialty-count {
    font-weight: 600;
    color: #666;
}

/* Photo Upload */
.photo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 3px solid #e0e0e0;
}

.photo-preview i {
    font-size: 40px;
    color: #999;
}

.photo-preview span {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-wrapper input[type="file"] {
    display: none;
}

.btn-upload-photo {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: space-between;
}

.btn-prev,
.btn-next,
.btn-submit,
.btn-send-code,
.btn-verify-code {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send-code,
.btn-verify-code {
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    color: #fff;
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    color: #fff;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 157, 130, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Verification Status */
.verification-status {
    margin-top: 20px;
    text-align: center;
}

.verification-status p {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

/* ========================================
   PLAN OPTIONS
   ======================================== */

.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.plan-option {
    cursor: pointer;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-card {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    height: 100%;
}

.plan-option.selected .plan-card {
    border-color: #3a9d82;
    box-shadow: 0 4px 20px rgba(58, 157, 130, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3a9d82;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    color: #3a9d82;
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: left;
}

.plan-card ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.trial-badge {
    background: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .doa-create-listing-hero h1 {
        font-size: 32px;
    }

    .progress-steps {
        gap: 10px;
    }

    .progress-step::before {
        display: none;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .form-step h2 {
        font-size: 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
    }

    .plan-options {
        grid-template-columns: 1fr;
    }

    .account-type-options {
        grid-template-columns: 1fr;
    }

    .btn-select-account-type {
        width: 100%;
        margin-left: 0;
    }
}

/* Fix license state dropdown height */
#license_state {
    max-height: 200px !important;
    overflow-y: auto !important;
}
