/**
 * DirHubs.com Directory - Submit Site Stylesheet
 */

.submit-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.submit-section-card:hover {
    border-color: #cbd5e1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-label .text-danger {
    font-weight: 700;
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Cascading Select Loader */
.select-wrapper {
    position: relative;
}

.select-spinner {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    pointer-events: none;
}

.select-loading .select-spinner {
    display: inline-block;
}

/* Map Container */
.map-card-wrapper {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

#osm-map {
    height: 340px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    z-index: 10;
}

.coords-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Geocode Search Results */
.geocode-results-box {
    position: relative;
    z-index: 1050;
}

.geocode-results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 0;
    list-style: none;
    display: none;
    z-index: 1060;
}

.geocode-result-item {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 0.88rem;
    color: #334155;
    transition: background 0.15s;
}

.geocode-result-item:hover {
    background: #f0f7ff;
    color: #0d6efd;
}

.geocode-result-item:last-child {
    border-bottom: none;
}

/* Image Upload Previews */
.upload-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-drop-zone:hover {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.upload-preview-container {
    margin-top: 0.75rem;
    display: none;
    text-align: center;
}

.upload-preview-img {
    max-height: 120px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    object-fit: cover;
}

/* Success Confirmation Screen */
.submission-success-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    font-size: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 4px solid #d1fae5;
}

.ref-code-box {
    display: inline-block;
    background: #f8fafc;
    border: 2px dashed #0d6efd;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: 1.5px;
    margin: 1.25rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .submit-section-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    #osm-map {
        height: 260px;
    }
}
