/* Onboarding Styles for ASEAN-Connect */

/* Main Section */
.onboarding-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.onboarding-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.onboarding-header {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.onboarding-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.onboarding-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Progress Bar */
.progress-container {
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.1);
}

.progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #00cc66 0%, #33cc99 100%);
    border-radius: 4px;
}

/* Body Content */
.onboarding-body {
    padding: 30px;
}

.onboarding-step {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
    display: block;
}

/* Country Badge */
.country-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 8px 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.country-flag-small {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

/* Country Grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.country-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 10px;
}

.country-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #e9ecef;
}

.country-item.selected {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.country-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.country-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.option-card.selected {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #0066cc;
    transition: all 0.3s ease;
}

.option-card:hover .option-icon,
.option-card.selected .option-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.option-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.option-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Auth Options */
.auth-option {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.auth-option.selected {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.auth-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.login-icon {
    color: #0066cc;
}

.register-icon {
    color: #00cc66;
}

.auth-option:hover .auth-icon,
.auth-option.selected .auth-icon {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.auth-option:hover .login-icon,
.auth-option.selected .login-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
}

.auth-option:hover .register-icon,
.auth-option.selected .register-icon {
    background: linear-gradient(135deg, #00cc66 0%, #33cc99 100%);
    color: white;
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.auth-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Selection Indicator */
.selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.option-card.selected .selection-indicator,
.auth-option.selected .selection-indicator {
    border-color: #0066cc;
    background-color: #0066cc;
}

.option-card.selected .selection-indicator:after,
.auth-option.selected .selection-indicator:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

/* Search Form */
.search-form {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.search-form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.text-danger {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* Buttons */
.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.btn-back {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #f8f9fa;
    color: #333;
}

.btn-back i {
    margin-right: 8px;
}

.btn-next {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.btn-next i {
    margin-left: 8px;
}

.btn-next:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #dddddd 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Search Button */
.search-button {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.search-button i {
    margin-right: 8px;
}

/* Business Cards */
.business-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.business-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.business-card.selected {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.business-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.business-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.business-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.business-logo i {
    font-size: 24px;
    color: #0066cc;
}

.business-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.business-category {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.business-details {
    margin-top: 15px;
}

.business-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.business-detail i {
    margin-right: 8px;
    color: #0066cc;
    margin-top: 3px;
    flex-shrink: 0;
}

.business-detail a {
    color: #0066cc;
    text-decoration: none;
}

.business-detail a:hover {
    text-decoration: underline;
}

/* Messages */
.info-message {
    background-color: rgba(0, 102, 204, 0.1);
    border-left: 4px solid #0066cc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-message i {
    color: #0066cc;
    margin-right: 8px;
}

.warning-message {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-message i {
    color: #ffc107;
    margin-right: 8px;
}

/* File Upload */
.upload-container {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    cursor: pointer;
}

.upload-container:hover {
    border-color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 15px;
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.upload-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.upload-button {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.upload-button i {
    margin-right: 8px;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-name {
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none;
}

.file-name.active {
    display: block;
}

/* Completion Page */
.completion-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00cc66 0%, #33cc99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 60px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 204, 102, 0.2);
}

.completion-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.completion-message {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Next Steps */
.next-steps {
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
}

.next-steps-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

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

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.step-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .business-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back, .btn-next {
        width: 100%;
        justify-content: center;
    }
}