/* Registration Page Styles */

.register-container {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem 0;
}

.register-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 2rem;
}

.logo-link {
    display: inline-block;
}

.logo-link img {
    height: 40px;
}

.register-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new_register-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px;
}

.register-header {
    background: #f5f5f5;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.register-header h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

/* Step Indicator */
.register-steps {
    margin-bottom: 3rem;
    display: block;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-indicator {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-bottom: 3rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
}


.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    white-space: nowrap;
    background: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.step:hover {
    background: #f0f7ff;
    border-color: #0066cc;
}

.step.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    z-index: 2;
}

.step.active .step-number,
.step.active .step-label {
    color: #fff;
}

.step-number {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #999;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.step.active .step-number {
    color: #fff;
    opacity: 0.9;
}

.step.active .step-label {
    color: #fff;
    font-weight: 600;
}

/* Register Steps */
.register-step {
    display: none;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.register-step h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Forms */
.register-form {
    margin-top: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.form-section .required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.required-asterisk {
    color: #e74c3c;
    margin-left: 0.25rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
    z-index: 1;
}

.password-toggle:hover {
    color: #0066cc;
}

.password-toggle:focus {
    outline: none;
    color: #0066cc;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.checkbox-group a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Checkbox List */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
}

.checkbox-item:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0066cc;
}



/* Textarea */
.form-control[type="textarea"],
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

.form-control[type="input"],
input.form-control {
    font-weight: bold;
}

/* Qualifications Section */
.qualifications-section {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Section Note */
.section-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f7ff;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
}

/* Date Input */
.form-control[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Upload Area */
.upload-area {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.upload-area.drag-over {
    border-color: #0066cc;
    background: #e6f2ff;
    border-style: solid;
    transform: scale(1.02);
}

.upload-area.drag-over::before {
    content: 'ファイルをドロップしてください';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 102, 204, 0.9);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

.upload-preview {
    margin-bottom: 1rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Tech Tools Grid - Banner Style */
.tech-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch; /* Ensure all items have equal height */
}

/* Banner Card with Checkbox */
.register-tech-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.register-tech-card:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.register-tech-card .tech-tool-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.register-tech-card .tech-tool-label {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Selected state - darken border and background */
.register-tech-card.selected {
    border-color: #0066cc;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.register-tech-card.selected .tool-banner-content {
    background-color: #f0f7ff;
}

.register-tech-card .tech-tool-label:hover {
    opacity: 0.95;
}

/* Banner Header with Background Image */
.register-tech-card .tool-banner-header {
    width: 100%;
    min-height: 200px;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

/* Banner Content - Equal Heights */
.register-tech-card {
    display: flex;
    flex-direction: column;
}

.register-tech-card .tech-tool-label {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.register-tech-card .tool-banner-content {
    padding: 1.5rem;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.register-tech-card:has(.tech-tool-checkbox:checked) .tool-banner-content {
    background-color: #f0f7ff;
}

.register-tech-card .tool-description {
    color: #333;
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1;
}

/* Old styles - keep for backward compatibility */
.tech-tool-card {
    position: relative;
}

.tech-tool-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tech-tool-card label {
    display: block;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.tech-tool-card input[type="checkbox"]:checked + label {
    border-color: #0066cc;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 204, 0.1);
}

.tech-tool-card label:hover {
    border-color: #0066cc;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-tool-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tech-tool-card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    /* border-top: 1px solid #e0e0e0; */
}

.form-actions button {
    min-width: 120px;
    max-width: 190px;
}

/* Preview Area */
.preview-area {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Section */
.payment-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
}

.payment-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-amount {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.payment-amount p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem 0;
    }

    .register-step {
        padding: 1.5rem;
    }

    .step-indicator {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding: 0.5rem;
        /* Make scrollbar visible */
        scrollbar-width: thin;
        scrollbar-color: #0066cc #f0f0f0;
    }

    .step-indicator::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    .step-indicator::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }

    .step-indicator::-webkit-scrollbar-thumb {
        background: #0066cc;
        border-radius: 4px;
    }

    .step-indicator::-webkit-scrollbar-thumb:hover {
        background: #0052a3;
    }

    .step {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 0.5rem 0.75rem;
    }
    
    .step-number {
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }

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

    /* Tech Tools Banner - Mobile adjustments */
    .tech-tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .register-tech-card .tool-banner-header {
        min-height: 150px;
        height: 150px;
    }

    .register-tech-card .tool-banner-content {
        padding: 1rem;
        min-height: 180px;
    }

    .register-tech-card .tool-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Mobile form improvements */
    .register-step {
        padding: 1rem;
    }

    .register-step h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .step-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .form-actions button {
        width: 100%;
        min-height: 44px; /* Better touch target */
        font-size: 1rem;
    }

    /* Better touch targets for all buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-add {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Input improvements - prevent zoom on iOS */
    .form-control {
        font-size: 16px;
        padding: 0.75rem;
    }

    /* Better spacing */
    .register-header {
        padding: 1rem;
    }

    .register-content, .new_register-content {
        padding: 0 1rem 2rem;
    }

    /* Form actions at bottom of form */
    .register-step {
        padding-bottom: 2rem; /* Normal padding at bottom of form */
    }

    .form-actions {
        position: relative; /* Ensure buttons are at bottom of form content */
        background: #fff;
        padding: 1rem;
        margin: 1.5rem -1rem -1rem;
        /* border-top: 1px solid #e0e0e0; */
    }

    /* Communication grid mobile */
    .communication-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .communication-item {
        margin-bottom: 0.75rem;
    }

    .communication-checkbox {
        padding: 0.75rem;
    }

    .comm-icon {
        width: 40px;
        height: 40px;
    }

    .comm-icon img {
        width: 100%;
        height: 100%;
    }

    /* SP: comm-details-wrapper stacks vertically */
    .comm-details-wrapper {
        flex-direction: column !important;
    }

    /* Upload area mobile */
    .upload-area {
        padding: 1rem;
    }

    .upload-area small {
        font-size: 0.75rem;
    }

    /* Greeting items mobile */
    .greeting-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .greeting-header {
        margin-bottom: 0.75rem;
    }

    /* Payment section mobile */
    .payment-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .payment-options {
        gap: 0.5rem;
    }

    .payment-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .step-indicator::before {
        display: none;
    }

    .step {
        flex: 0 0 auto;
        min-width: 90px;
        margin-bottom: 0;
        padding: 0.5rem 0.75rem;
    }

    .step-number {
        font-size: 0.7rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

/* Greeting Items */
.greeting-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: move;
    transition: opacity 0.2s, transform 0.2s;
}

.greeting-item:hover {
    border-color: #0066cc;
}

.greeting-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.greeting-item.drag-over {
    border-color: #0066cc;
    border-style: dashed;
    background: #e6f2ff;
}

/* Free Input Pair Item - Drag and Drop */
.free-input-pair-item {
    cursor: move;
    transition: opacity 0.2s, transform 0.2s;
}

.free-input-pair-item:hover {
    border-color: #0066cc;
}

.free-input-pair-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.free-input-pair-item.drag-over {
    border-color: #0066cc;
    border-style: dashed;
    background: #e6f2ff;
}

.greeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.greeting-number {
    font-weight: bold;
    color: #0066cc;
    font-size: 1.1rem;
}

/* Free input pair header (similar to greeting header) */
.free-input-pair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.free-input-pair-number {
    font-weight: bold;
    color: #0066cc;
    font-size: 1.1rem;
}

.free-input-pair-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.greeting-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-move-up,
.btn-move-down {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-move-up:hover:not(:disabled),
.btn-move-down:hover:not(:disabled) {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.btn-delete {
    background: #fff;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    color: #e74c3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-restore-defaults {
    background: #17a2b8;
    color: #fff;
    border: 1px solid #17a2b8;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 1rem;
    display: inline-block;
}

.btn-restore-defaults:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.btn-move-up:disabled,
.btn-move-down:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add {
    background: #fff;
    color: #0066cc;
    padding: 0.75rem 1.5rem;
    border: 1px solid #0066cc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-add:hover {
    background: #0066cc;
    color: #fff;
}

/* Communication Grid */
.communication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comm-actions {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.communication-item .btn-move-up,
.communication-item .btn-move-down {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
    color: #333;
    min-width: 32px;
}

.communication-item .btn-move-up:hover:not(:disabled),
.communication-item .btn-move-down:hover:not(:disabled) {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.communication-item .btn-move-up:disabled,
.communication-item .btn-move-down:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.communication-item.dragging {
    opacity: 0.5;
}

.communication-item.drag-over {
    border: 2px dashed #0066cc;
}

.communication-item {
    display: flex;
    flex-direction: column;
}

.communication-checkbox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    width: 190px;
}

.communication-checkbox:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.communication-checkbox input[type="checkbox"] {
    display: none;
}

.communication-checkbox input[type="checkbox"]:checked + .comm-icon,
.communication-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #0066cc;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comm-icon {
    font-size: 2rem;
}

.comm-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.communication-checkbox span {
    font-size: 0.9rem;
    font-weight: 500;
}

.comm-details {
    margin-top: 0.75rem;
    width: 100%;
}

.comm-details-wrapper .comm-details {
    margin-top: 0;
}

.comm-details-wrapper .comm-details input {
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 0rem;
}

.comm-details-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.comm-details-wrapper .communication-checkbox {
    justify-content: flex-start;
}

.comm-help-button-wrapper {
    display: flex;
    justify-content: flex-end;
}

.comm-help-button {
    background: #fff;
    border: 1px solid #0066cc;
    border-radius: 4px;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.comm-help-button:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Communication help modal - message area */
.comm-help-modal-overlay .modal-message {
    font-size: 16px;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    /* word-break: keep-all; */
    overflow-wrap: break-word;
}

.comm-help-modal-overlay .modal-message ol {
    list-style: none;
}

/* License Lookup Button */
#lookup-license,
#lookup-address {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Preview Button */
.btn-preview {
    background: #019b23;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.preview-btn-container {
    text-align: center;
    margin: 1rem 0;
}

.preview-btn-desktop {
    display: block;
}

.preview-btn-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .preview-btn-desktop {
        display: none;
    }
    .preview-btn-mobile {
        display: block;
        margin-top: 2rem; /* Add spacing above preview button */
    }
    .preview-btn-container {
        width: 100%;
        margin: 2rem 0 1rem 0; /* Add spacing above and below */
    }
    .preview-btn-container .btn-preview {
        width: 90%;
        border-radius: 5px;
    }
}

@media (min-width: 1025px) {
    .preview-btn-container.preview-btn-desktop {
        width: 30%;
        margin-bottom: 1rem;
        margin-left: 0;
    }
    .preview-btn-desktop .btn-preview {
        width: 90%;
        border-radius: 5px;
    }
}

.btn-preview:hover {
    background: #0a6d01;
}


/* Preview Container */
.preview-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.preview-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.btn-close-preview {
    background: #666;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-close-preview:hover {
    background: #555;
}

.preview-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Preview Card Styles */
.preview-card {
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
}

.preview-header-section {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.preview-logo {
    margin-bottom: 1rem;
}

.preview-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.preview-company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.preview-profile-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.preview-photo {
    flex-shrink: 0;
}

.preview-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.preview-person-info {
    flex: 1;
}

.preview-person-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.preview-position,
.preview-department {
    font-size: 1.1rem;
    color: #666;
    margin: 0.25rem 0;
}

.preview-qualifications {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
}

.preview-company-info,
.preview-personal-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
}

.preview-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.preview-info-item:last-child {
    margin-bottom: 0;
}

.preview-info-item strong {
    min-width: 120px;
    font-weight: 600;
    color: #333;
}

.preview-info-item span,
.preview-info-item a {
    flex: 1;
    color: #666;
}

.preview-info-item a {
    color: #0066cc;
    text-decoration: none;
}

.preview-info-item a:hover {
    text-decoration: underline;
}

.preview-greetings {
    margin-bottom: 2rem;
}

.preview-greeting-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.preview-greeting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-greeting-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0066cc;
    margin: 0 0 0.75rem 0;
}

.preview-greeting-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.preview-tech-tools {
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.preview-tech-tools h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.preview-tech-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.preview-tech-tool-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.preview-tech-tool-item:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.preview-tool-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.preview-tech-tool-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.preview-tool-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.preview-tool-btn:hover {
    background: #c82333;
}

.preview-communication {
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.preview-communication hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 0 0 1.5rem 0;
}

.preview-communication h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.preview-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.preview-comm-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.preview-comm-item:hover {
    border-color: #0066cc;
}

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

.preview-comm-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.preview-comm-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
}

.preview-comm-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.preview-comm-btn:hover {
    background: #c82333;
}

.preview-free-input {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
}

.preview-free-input p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.preview-free-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.preview-free-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-free-image a {
    display: inline-block;
}

/* Hide empty sections */
.preview-company-info:empty,
.preview-personal-info:empty,
.preview-greetings:empty,
.preview-tech-tools:empty,
.preview-communication:empty,
.preview-free-input:empty,
.preview-free-image:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .register-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-preview {
        margin-left: 0;
        width: 100%;
    }
    
    .preview-profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .preview-tech-tools-grid,
    .preview-comm-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-info-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .preview-info-item strong {
        min-width: auto;
    }
}

/* Free input text item styles */
.free-input-text-item {
    margin-bottom: 1rem;
    position: relative;
}

.free-input-text-item textarea {
    margin-bottom: 0.5rem;
}

.btn-add-small {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: background 0.3s;
}

.btn-add-small:hover {
    background: #0056b3;
}

.btn-delete-small {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.btn-delete-small:hover {
    background: #c82333;
}

/* Tech tool actions */
.tech-tool-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.tech-tool-banner-card {
    position: relative;
}

.tech-tool-banner-card.dragging {
    opacity: 0.5;
}

.tech-tool-banner-card.drag-over {
    border: 2px dashed #0066cc;
}

/* Free image item styles */
.free-image-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.free-image-item:last-child {
    margin-bottom: 0;
}

