/* Franchise Form Styles */

.franchise-form-section {
    padding: 6rem 0 3rem;
    background: #f8fafc;
    min-height: 100vh;
}

.breadcrumb-nav {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item .step-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step-item span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.step-item.active .step-icon {
    background: var(--secondary-color);
    color: white;
}

.step-item.active span {
    color: var(--secondary-color);
    font-weight: 600;
}

.step-item.completed .step-icon {
    background: #10b981;
    color: white;
}

.step-item.completed span {
    color: #10b981;
}

/* Form */
.franchise-form {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #64748b;
    font-size: 1rem;
}

.success-header h2 {
    color: #10b981;
}

.edit-note {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem;
}

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

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

/* Form Rows */
.form-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.form-row.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.required {
    color: #ef4444;
    font-weight: 500;
    font-size: 0.85rem;
}

.optional {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.85rem;
}

.field-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload Button */
.file-upload-btn {
    position: relative;
}

.file-upload-btn input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-btn label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.file-upload-btn label:hover {
    border-color: var(--secondary-color);
    background: #eff6ff;
}

.file-preview {
    margin-top: 0.5rem;
}

.file-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Document Upload */
.document-upload {
    position: relative;
}

.document-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.doc-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.doc-upload-box:hover {
    border-color: var(--secondary-color);
    background: #f8fafc;
}

.doc-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.doc-hint {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 0.5rem;
}

/* Region Selector / Checkbox Group */
.region-selector,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.region-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.region-checkbox input {
    display: none;
}

.region-checkbox:hover {
    border-color: var(--secondary-color);
}

.region-checkbox:has(input:checked) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Multi Upload Area */
.multi-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 78, 137, 0.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.multi-upload-area p {
    color: #64748b;
    margin: 0.5rem 0;
}

.upload-hint {
    font-size: 0.85rem;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

/* FAQ Section */
.faq-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.faq-item .form-group {
    margin-bottom: 0.75rem;
}

.faq-item .form-group:last-child {
    margin-bottom: 0;
}

.btn-add-faq {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-faq:hover {
    background: #003d6e;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-prev {
    background: transparent;
    color: var(--secondary-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    text-decoration: underline;
}

.btn-next {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: #e2e8f0;
}

.final-nav {
    gap: 1rem;
}

.btn-preview {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: #003d6e;
}

.btn-submit {
    background: #10b981;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Preview Summary */
.preview-summary {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .step-progress {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .form-row.two-cols,
    .form-row.three-cols,
    .form-row.four-cols {
        grid-template-columns: 1fr;
    }
    
    .region-selector,
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .form-section {
        padding: 1rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-navigation button {
        width: 100%;
    }
    
    .region-selector,
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

