/* Shared Form Styles for Key Service Forms */

/* Photo instruction styles */
.photo-instructions, .document-instructions {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

/* Mobile optimization - remove outer frames */
@media (max-width: 768px) {
    /* Remove main form container frame */
    .contact-form {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove page content container padding */
    .page-content .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Adjust form groups for mobile */
    .form-group {
        margin-bottom: 20px;
        padding: 0;
    }
    
    .photo-instructions, .document-instructions {
        background: transparent;
        border: none;
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .instruction-header {
        background: #f8f9fa;
        border-radius: 6px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .important-notice {
        margin: 15px 0;
    }
    
    .tips-section {
        margin: 15px 0;
    }
}

.instruction-header h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.photo-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .photo-guide {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-instructions, .document-instructions {
        background: transparent;
        border: none;
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .instruction-header {
        background: #f8f9fa;
        border-radius: 6px;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .guide-section {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .demo-image {
        max-width: 150px;
    }
    
    .important-notice {
        margin: 15px 0;
        padding: 10px;
        font-size: 12px;
    }
    
    .notice-text {
        font-size: 12px;
    }
    
    .tips-section {
        margin: 15px 0;
        padding: 12px;
    }
    
    .tips-section h5 {
        font-size: 13px;
    }
    
    .tips-section li {
        font-size: 12px;
    }
}

.guide-section {
    background: white;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.guide-section.correct {
    border: 2px solid #28a745;
}

.guide-section.incorrect {
    border: 2px solid #dc3545;
}

.guide-image {
    margin-bottom: 10px;
}

.demo-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.guide-section.correct .demo-image {
    border: 2px solid #28a745;
}

.guide-section.incorrect .demo-image {
    border: 2px solid #dc3545;
}

.status.good {
    color: #28a745;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.status.bad {
    color: #dc3545;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.guide-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 13px;
    line-height: 1.4;
    color: #856404;
}

.tips-section {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
}

.tips-section h5 {
    margin: 0 0 10px 0;
    color: #004085;
    font-size: 14px;
}

.tips-section ul {
    margin: 0;
    padding-left: 20px;
}

.tips-section li {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 3px;
    color: #004085;
}

/* Radio button styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
}

.radio-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

/* When radio is checked, color the whole option */
.radio-option input[type="radio"]:checked ~ * {
    color: white;
}

.radio-option:has(input[type="radio"]:checked) {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.radio-option:has(input[type="radio"]:checked):hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Enhanced file input button styling */
.file-input-container {
    margin-top: 15px;
    text-align: center;
}

/* Orange theme buttons - Primary submit buttons */
.btn.btn-primary,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:disabled {
    color: white !important;
    background-color: #ff6600 !important;
    background: #ff6600 !important;
    font-style: normal !important;
    font-weight: normal !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 20px auto 0 auto;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e55a00 !important;
    background: #e55a00 !important;
}

.btn-primary:active {
    background-color: #cc4f00 !important;
    background: #cc4f00 !important;
}

.btn-primary:disabled {
    background-color: #ff6600 !important;
    background: #ff6600 !important;
    opacity: 0.7 !important;
}

/* Orange theme - File upload buttons */
.file-select-btn {
    background: #ff6600 !important;
    background-color: #ff6600 !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.file-select-btn:hover {
    background: #e55a00 !important;
    background-color: #e55a00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4) !important;
}

.file-select-btn:active {
    background: #cc4f00 !important;
    background-color: #cc4f00 !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.3) !important;
}

.file-select-btn::before {
    content: "📷";
    font-size: 18px;
}

.file-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
}

.file-name {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.clear-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.clear-file-btn:hover {
    background: #c82333;
}

/* Button alignment and consistent width - removed duplicate, now handled above */

/* Ensure memo field has same width as other fields */
#memo {
    width: 100%;
    box-sizing: border-box;
}

/* File status layout update for thumbnail */
.file-status {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Thumbnail styles */
.thumbnail-container {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.thumbnail-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background: #fff;
}

@media (max-width: 768px) {
    .thumbnail-preview {
        max-width: 150px;
        max-height: 120px;
    }
}
