/* ========================================
   MODERN SUCCESS MODAL - MOBILE FRIENDLY
   ======================================== */

.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.success-modal-container {
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.success-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 1.1rem;
}

.success-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #495057;
}

.success-modal-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: successIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.success-modal-icon i {
    font-size: 3rem;
    color: white;
    animation: checkmarkDraw 0.5s ease 0.4s both;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-circle {
    position: absolute;
    inset: -10px;
    border: 3px solid #28a745;
    border-radius: 50%;
    opacity: 0.3;
    animation: circleExpand 0.8s ease 0.3s both;
    aspect-ratio: 1 / 1;
}

.success-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.success-modal-message {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    animation: fadeInUp 0.5s ease 0.6s both;
}

.success-modal-actions {
    animation: fadeInUp 0.5s ease 0.7s both;
}

.success-modal-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.success-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.success-modal-btn:active {
    transform: translateY(0);
}

/* ========================================
   MODERN ERROR MODAL - MOBILE FRIENDLY
   ======================================== */

.error-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.error-modal-container {
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.error-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 1.1rem;
}

.error-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #495057;
}

.error-modal-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-modal-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: errorIconShake 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.error-modal-icon i {
    font-size: 3rem;
    color: white;
    animation: errorIconPulse 0.5s ease 0.4s both;
}

.error-modal-circle {
    position: absolute;
    inset: -10px;
    border: 3px solid #dc3545;
    border-radius: 50%;
    opacity: 0.3;
    animation: circleExpand 0.8s ease 0.3s both;
}

.error-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.error-modal-message {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    animation: fadeInUp 0.5s ease 0.6s both;
}

.error-modal-actions {
    animation: fadeInUp 0.5s ease 0.7s both;
}

.error-modal-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.error-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.error-modal-btn:active {
    transform: translateY(0);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes errorIconShake {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes checkmarkDraw {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes errorIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes circleExpand {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .success-modal-overlay,
    .error-modal-overlay {
        padding: 0.75rem;
    }

    .success-modal-content,
    .error-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .success-modal-icon-wrapper,
    .error-modal-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1.25rem;
    }

    .success-modal-icon,
    .error-modal-icon {
        width: 80px;
        height: 80px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .success-modal-icon i,
    .error-modal-icon i {
        font-size: 2.5rem;
        line-height: 1;
    }

    .success-modal-title,
    .error-modal-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .success-modal-message,
    .error-modal-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .success-modal-btn,
    .error-modal-btn {
        padding: 12px 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .success-modal-overlay,
    .error-modal-overlay {
        padding: 0.5rem;
    }

    .success-modal-content,
    .error-modal-content {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .success-modal-icon-wrapper,
    .error-modal-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .success-modal-icon,
    .error-modal-icon {
        width: 70px;
        height: 70px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .success-modal-icon i,
    .error-modal-icon i {
        font-size: 2rem;
        line-height: 1;
    }

    .success-modal-title,
    .error-modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .success-modal-message,
    .error-modal-message {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .success-modal-btn,
    .error-modal-btn {
        padding: 11px 28px;
        font-size: 0.9rem;
        width: 100%;
    }

    .success-modal-close,
    .error-modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Multi-Step Form Styles */
.btn-next:not(:disabled):hover,
.btn-prev:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

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

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-field input,
.form-field select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #667eea;
}

.required-label::after {
    content: ' *';
    color: #dc3545;
}

/* Step 3 Upload Section Overrides */
#step-3 .upload-section {
    margin: 0;
    padding: 0;
    background: transparent;
}

#step-3 .upload-container {
    margin-bottom: 1rem;
}

#step-3 .preview-container {
    margin-top: 1rem;
}

#step-3 #upload-icon {
    transition: transform 0.3s ease;
}

#step-3 .upload-container:hover #upload-icon i {
    transform: scale(1.1);
    color: #581845;
}

#step-3 .upload-container.has-file #upload-icon {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #successModal .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    #successModal .modal-header h2 {
        font-size: 1.3rem;
    }
    
    #successModal .success-icon .fas.fa-check-circle {
        font-size: 3rem;
    }

    .step-progress {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-line {
        display: none;
    }

    .step-item {
        width: 100%;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions button {
        width: 100%;
    }

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

    #multi-step-form {
        padding: 1rem;
    }

    #step-3 ul {
        padding-left: 1rem;
    }

    #step-3 .upload-icon {
        width: 48px;
        height: 48px;
    }
}


/* ========================================
   MULTI-STEP FORM BUTTON STYLES
   ======================================== */

.btn-next:not(:disabled):hover,
.btn-prev:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

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

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-field input,
.form-field select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #667eea;
}

.required-label::after {
    content: ' *';
    color: #dc3545;
}

/* Step 3 Upload Section Overrides */
#step-3 .upload-section {
    margin: 0;
    padding: 0;
    background: transparent;
}

#step-3 .upload-container {
    margin-bottom: 1rem;
}

#step-3 .preview-container {
    margin-top: 1rem;
}

#step-3 #upload-icon {
    transition: transform 0.3s ease;
}

#step-3 .upload-container:hover #upload-icon i {
    transform: scale(1.1);
    color: #581845;
}

#step-3 .upload-container.has-file #upload-icon {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-progress {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-line {
        display: none;
    }

    .step-item {
        width: 100%;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions button {
        width: 100%;
    }

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

    #multi-step-form {
        padding: 1rem;
    }

    #step-3 ul {
        padding-left: 1rem;
    }

    #step-3 .upload-icon {
        width: 48px;
        height: 48px;
    }
}


/* ========================================
   STEP 4: REVIEW & SUBMIT - MOBILE FRIENDLY
   ======================================== */

.review-section {
    margin-bottom: 2rem;
}

.review-section-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-service-name {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.review-field-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-field-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.review-field-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Pickup Schedule Styles */
.review-pickup-box {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.review-pickup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.review-pickup-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem;
    border-radius: 6px;
}

.review-pickup-label {
    font-size: 0.85rem;
    color: #004085;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.review-pickup-value {
    color: #004085;
    font-weight: 600;
    font-size: 1.05rem;
}

.review-pickup-note {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 123, 255, 0.2);
}

.review-pickup-note p {
    margin: 0;
    color: #004085;
    font-size: 0.9rem;
    line-height: 1.5;
}

.review-pickup-note i {
    margin-right: 0.25rem;
}

/* Uploaded Files Styles */
.review-files-box {
    background: #e7f9ed;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.review-files-count {
    color: #155724;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.review-files-count i {
    color: #28a745;
    margin-right: 0.25rem;
}

.review-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-file-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.review-file-info {
    flex: 1;
    min-width: 0;
}

.review-file-name {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.review-file-size {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.review-warning-box {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.review-warning-box p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

.review-warning-box i {
    color: #ffc107;
    margin-right: 0.25rem;
}

/* Important Note */
.review-important-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.review-important-note p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-important-note i {
    margin-right: 0.25rem;
}

/* Mobile Responsive Styles for Review Step */
@media (max-width: 768px) {
    .review-section {
        margin-bottom: 1.5rem;
    }

    .review-section-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .review-service-name {
        font-size: 1rem;
    }

    .review-fields-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .review-field-item {
        padding: 0.625rem;
    }

    .review-field-label {
        font-size: 0.8rem;
    }

    .review-field-value {
        font-size: 0.9rem;
    }

    .review-pickup-box {
        padding: 0.875rem;
    }

    .review-pickup-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .review-pickup-item {
        padding: 0.625rem;
    }

    .review-pickup-label {
        font-size: 0.8rem;
    }

    .review-pickup-value {
        font-size: 1rem;
    }

    .review-pickup-note {
        padding-top: 0.75rem;
    }

    .review-pickup-note p {
        font-size: 0.85rem;
    }

    .review-files-box {
        padding: 0.875rem;
    }

    .review-files-count {
        font-size: 0.9rem;
        margin-bottom: 0.625rem;
    }

    .review-file-item {
        padding: 0.625rem;
        gap: 0.625rem;
    }

    .review-file-item i {
        font-size: 1.25rem;
    }

    .review-file-name {
        font-size: 0.9rem;
    }

    .review-file-size {
        font-size: 0.8rem;
    }

    .review-important-note {
        padding: 0.875rem;
        margin-top: 1.5rem;
    }

    .review-important-note p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .review-section {
        margin-bottom: 1.25rem;
    }

    .review-section-title {
        font-size: 1rem;
        margin-bottom: 0.625rem;
        padding-bottom: 0.375rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .review-service-name {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .review-fields-grid {
        gap: 0.625rem;
    }

    .review-field-item {
        padding: 0.5rem;
    }

    .review-field-label {
        font-size: 0.75rem;
    }

    .review-field-value {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .review-pickup-box {
        padding: 0.75rem;
    }

    .review-pickup-grid {
        gap: 0.625rem;
    }

    .review-pickup-item {
        padding: 0.5rem;
    }

    .review-pickup-label {
        font-size: 0.75rem;
    }

    .review-pickup-value {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .review-pickup-note {
        padding-top: 0.625rem;
    }

    .review-pickup-note p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .review-files-box {
        padding: 0.75rem;
    }

    .review-files-count {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .review-file-item {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .review-file-item i {
        font-size: 1.1rem;
    }

    .review-file-name {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .review-file-size {
        font-size: 0.75rem;
    }

    .review-important-note {
        padding: 0.75rem;
        margin-top: 1.25rem;
    }

    .review-important-note p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .review-section {
        margin-bottom: 1rem;
    }

    .review-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.3rem;
    }

    .review-section-title i {
        font-size: 0.9rem;
    }

    .review-service-name {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .review-fields-grid {
        gap: 0.5rem;
    }

    .review-field-item {
        padding: 0.45rem;
    }

    .review-field-label {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .review-field-value {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .review-pickup-box {
        padding: 0.625rem;
    }

    .review-pickup-grid {
        gap: 0.5rem;
    }

    .review-pickup-item {
        padding: 0.45rem;
    }

    .review-pickup-label {
        font-size: 0.7rem;
    }

    .review-pickup-value {
        font-size: 0.9rem;
    }

    .review-pickup-note {
        padding-top: 0.5rem;
    }

    .review-pickup-note p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .review-pickup-note i {
        font-size: 0.75rem;
    }

    .review-files-box {
        padding: 0.625rem;
    }

    .review-files-count {
        font-size: 0.8rem;
        margin-bottom: 0.45rem;
    }

    .review-file-item {
        padding: 0.45rem;
        gap: 0.45rem;
    }

    .review-file-item i {
        font-size: 1rem;
    }

    .review-file-name {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .review-file-size {
        font-size: 0.7rem;
    }

    .review-important-note {
        padding: 0.625rem;
        margin-top: 1rem;
    }

    .review-important-note p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .review-important-note i {
        font-size: 0.8rem;
    }

    .review-warning-box {
        padding: 0.75rem;
    }

    .review-warning-box p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Ensure review content container is responsive */
#review-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#review-content * {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #review-content {
        padding: 1rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    #review-content {
        padding: 0.75rem;
        border-radius: 6px;
    }
}

@media (max-width: 360px) {
    #review-content {
        padding: 0.625rem;
        border-radius: 4px;
    }
}


/* ========================================
   STEP HEADER AND BUTTON RESPONSIVE STYLES
   ======================================== */

.step-header-section {
    margin-bottom: 2rem;
}

.step-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-description {
    color: #7f8c8d;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.step-actions-responsive {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-responsive {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-prev.btn-responsive {
    background: #6c757d;
    color: white;
}

.btn-prev.btn-responsive:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-submit.btn-responsive {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit.btn-responsive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-submit.btn-responsive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.btn-submit.btn-responsive:active,
.btn-prev.btn-responsive:active {
    transform: translateY(0);
}

/* Mobile Responsive for Step Header and Buttons */
@media (max-width: 768px) {
    .step-header-section {
        margin-bottom: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .step-description {
        font-size: 1rem;
        line-height: 1.5;
    }

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

    .btn-responsive {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .step-header-section {
        margin-bottom: 1.25rem;
    }

    .step-title {
        font-size: 1.3rem;
        margin-bottom: 0.625rem;
        gap: 0.375rem;
        line-height: 1.3;
    }

    .step-title i {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .step-actions-responsive {
        gap: 0.625rem;
        margin-top: 1.25rem;
    }

    .btn-responsive {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .step-header-section {
        margin-bottom: 1rem;
    }

    .step-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
        gap: 0.3rem;
        line-height: 1.3;
    }

    .step-title i {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .step-actions-responsive {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .btn-responsive {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .btn-responsive i {
        font-size: 0.85rem;
    }
}


/* ========================================
   CRITICAL MOBILE FIX - OVERRIDE ALL INLINE STYLES
   ======================================== */

/* Force container to be responsive */
#multi-step-form {
    max-width: 900px !important;
    width: 100% !important;
    padding: 2rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force review content to be responsive */
#review-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Force all child elements to respect container width */
#review-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Step progress container responsive */
.step-progress-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-bottom: 3rem !important;
}

.step-progress {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    #multi-step-form {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        margin: 0 0.5rem !important;
        width: calc(100% - 1rem) !important;
    }

    #review-content {
        padding: 1rem !important;
    }

    .step-progress-container {
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }

    .step-progress {
        flex-direction: row !important;
        max-width: 100% !important;
    }

    .step-item {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .step-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .step-label {
        font-size: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Hide step labels on very small screens to save space */
    .progress-line {
        top: 20px !important;
    }
}

@media (max-width: 480px) {
    #multi-step-form {
        padding: 1rem !important;
        border-radius: 8px !important;
        margin: 0 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
    }

    #review-content {
        padding: 0.75rem !important;
    }

    .step-progress-container {
        margin-bottom: 1.5rem !important;
        padding: 0 0.25rem !important;
    }

    .step-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }

    .step-label {
        font-size: 0.7rem !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .progress-line {
        top: 17px !important;
    }

    /* Make step titles smaller on mobile */
    .step-content h3 {
        font-size: 1.3rem !important;
    }

    .step-content p {
        font-size: 0.95rem !important;
    }
}

/* Ensure services grid container maintains proper spacing */
.services-grid {
    box-sizing: border-box;
    overflow-x: hidden;
}

.services-grid .container {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .services-grid .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid .container {
        padding: 0 0.75rem;
    }
}

/* Fix for long file names in review */
.review-file-name {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    .review-file-name {
        font-size: 0.8rem !important;
    }
}

/* Ensure pickup schedule doesn't overflow */
.review-pickup-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.review-pickup-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure important note doesn't overflow */
.review-important-note {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.review-important-note p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix for service description box */
#service-description {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix for custom dropdown */
.custom-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.custom-dropdown-selected {
    width: 100% !important;
    box-sizing: border-box !important;
}

.custom-dropdown-selected .selected-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    .custom-dropdown-selected {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
}


/* ========================================
   PREVENT HORIZONTAL SCROLL ON MOBILE - TARGETED
   ======================================== */

/* Only apply overflow hidden to prevent horizontal scroll */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Ensure services section respects viewport width */
.services-grid {
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Additional mobile fixes for review content */
@media (max-width: 768px) {
    /* Ensure review sections don't overflow */
    .review-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .review-section-title {
        font-size: 1rem !important;
        word-wrap: break-word !important;
    }

    .review-fields-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .review-field-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .review-field-value {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Fix pickup schedule on mobile */
    .review-pickup-grid {
        grid-template-columns: 1fr !important;
    }

    .review-pickup-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .review-pickup-value {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Fix files list on mobile */
    .review-files-list {
        width: 100% !important;
        max-width: 100% !important;
    }

    .review-file-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .review-file-info {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - be even more aggressive */
    .review-section-title {
        font-size: 0.95rem !important;
    }

    .review-service-name {
        font-size: 0.9rem !important;
    }

    .review-field-label {
        font-size: 0.75rem !important;
    }

    .review-field-value {
        font-size: 0.85rem !important;
    }

    .review-pickup-label {
        font-size: 0.75rem !important;
    }

    .review-pickup-value {
        font-size: 0.9rem !important;
    }

    .review-files-count {
        font-size: 0.8rem !important;
    }

    .review-file-item {
        padding: 0.5rem !important;
    }

    .review-file-item i {
        font-size: 1rem !important;
    }

    .review-important-note {
        padding: 0.75rem !important;
    }

    .review-important-note p {
        font-size: 0.8rem !important;
    }
}

/* Only apply text wrapping to review content and form elements */
#review-content *,
.review-section *,
.form-field *,
.custom-dropdown * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevent images and icons from causing overflow only in review content */
#review-content img, 
#review-content svg, 
#review-content i,
.review-section img,
.review-section svg,
.review-section i {
    max-width: 100%;
    height: auto;
}

/* ========================================
   PROPER PAGE LAYOUT AND SPACING
   ======================================== */

/* Services header section */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.services-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.services-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Step progress container proper spacing */
.step-progress-container {
    margin-bottom: 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Multi-step form proper spacing */
#multi-step-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Step content proper spacing */
.step-content {
    padding: 0;
    box-sizing: border-box;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    word-wrap: break-word;
}

.step-content p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Service selection section */
.service-selection {
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.service-selection label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    word-wrap: break-word;
}

/* Service description box */
#service-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-bottom: 2rem;
    box-sizing: border-box;
    word-wrap: break-word;
}

#service-description h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

#service-description p {
    color: #7f8c8d;
    margin: 0;
    word-wrap: break-word;
}

/* Step actions proper spacing */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

.step-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .services-header {
        margin-bottom: 2rem;
        padding: 0 0.75rem;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 1rem;
    }

    .step-progress-container {
        margin-bottom: 2rem;
        padding: 0 0.75rem;
    }

    #multi-step-form {
        padding: 1.5rem;
        margin: 0 0.75rem;
        border-radius: 12px;
    }

    .step-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .step-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .service-selection {
        margin-bottom: 1.5rem;
    }

    .service-selection label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    #service-description {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

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

    .step-actions button {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .services-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .services-header h2 {
        font-size: 1.75rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .step-progress-container {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    #multi-step-form {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: 8px;
    }

    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .step-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .service-selection {
        margin-bottom: 1.25rem;
    }

    .service-selection label {
        font-size: 0.95rem;
        margin-bottom: 0.625rem;
    }

    #service-description {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .step-actions {
        gap: 0.625rem;
        margin-top: 1.25rem;
    }

    .step-actions button {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Ensure proper spacing for upload section */
.upload-section {
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.upload-container {
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.preview-container {
    margin-top: 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .upload-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .upload-section {
        margin-bottom: 1.25rem;
    }
}

/* Ensure proper spacing for personal info form */
#personal-info-form {
    margin-bottom: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #personal-info-form {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    #personal-info-form {
        margin-bottom: 1.25rem;
    }
}/* ====
====================================
   OVERRIDE INLINE STYLES FOR PROPER SPACING
   ======================================== */

/* Override inline styles for services header */
.services-header[style] {
    text-align: center !important;
    margin-bottom: 3rem !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

.services-header h2[style] {
    color: #2c3e50 !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.services-header p[style] {
    color: #7f8c8d !important;
    font-size: 1.1rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Override inline styles for step progress */
.step-progress-container[style] {
    margin-bottom: 3rem !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

.step-progress[style] {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Override inline styles for multi-step form */
#multi-step-form[style] {
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    padding: 2rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Override inline styles for step content */
.step-content h3[style] {
    color: #2c3e50 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.8rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.step-content p[style] {
    color: #7f8c8d !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Override inline styles for step actions */
.step-actions[style] {
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    box-sizing: border-box !important;
}

.step-actions button[style] {
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Mobile responsive overrides for inline styles */
@media (max-width: 768px) {
    .services-header[style] {
        margin-bottom: 2rem !important;
        padding: 0 0.75rem !important;
    }

    .services-header h2[style] {
        font-size: 2rem !important;
    }

    .services-header p[style] {
        font-size: 1rem !important;
    }

    .step-progress-container[style] {
        margin-bottom: 2rem !important;
        padding: 0 0.75rem !important;
    }

    #multi-step-form[style] {
        padding: 1.5rem !important;
        margin: 0 0.75rem !important;
        border-radius: 12px !important;
    }

    .step-content h3[style] {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .step-content p[style] {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .step-actions[style] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }

    .step-actions button[style] {
        width: 100% !important;
        padding: 14px 20px !important;
    }
}

@media (max-width: 480px) {
    .services-header[style] {
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
    }

    .services-header h2[style] {
        font-size: 1.75rem !important;
    }

    .services-header p[style] {
        font-size: 0.95rem !important;
    }

    .step-progress-container[style] {
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
    }

    #multi-step-form[style] {
        padding: 1rem !important;
        margin: 0 0.5rem !important;
        border-radius: 8px !important;
    }

    .step-content h3[style] {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    .step-content p[style] {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
    }

    .step-actions[style] {
        gap: 0.625rem !important;
        margin-top: 1.25rem !important;
    }

    .step-actions button[style] {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
}

/* Ensure hero section doesn't cause overflow */
.hero {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero-overlay {
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.hero-overlay h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-overlay p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 700px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 15px;
    }

    .hero-overlay h2 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 10px;
    }

    .hero-overlay h2 {
        font-size: 1.75rem;
    }

    .hero-overlay p {
        font-size: 0.95rem;
        max-width: 95%;
    }
}
/*
 ========================================
   PERFECT CENTERING FIX
   ======================================== */

/* Ensure the main services section is perfectly centered */
.services-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
    box-sizing: border-box !important;
}

.services-grid .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Center the step progress container */
.step-progress-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 3rem auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

/* Center the multi-step form */
#multi-step-form {
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    transform: none !important;
}

/* Mobile centering adjustments */
@media (max-width: 768px) {
    .services-grid {
        padding: 1rem 0.5rem !important;
    }

    #multi-step-form {
        margin: 0 auto !important;
        width: calc(100% - 1rem) !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .step-progress-container {
        padding: 0 0.5rem !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        padding: 0.5rem 0.25rem !important;
    }

    #multi-step-form {
        width: calc(100% - 0.5rem) !important;
        margin: 0 auto !important;
    }

    .step-progress-container {
        padding: 0 0.25rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Targeted centering for main containers only */
.services-grid, 
#multi-step-form, 
.step-progress-container,
.container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure body doesn't have any margin/padding that could offset content */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Check for any parent containers that might be causing the offset */
section.services-grid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================
   DEBUG AND FIX CENTERING ISSUES
   ======================================== */

/* Reset any potential margin/padding issues from parent elements */
.services-grid {
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Ensure the container inside services-grid is perfectly centered */
.services-grid > .container {
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Make sure the form container is perfectly centered */
#multi-step-form {
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

/* Mobile specific centering */
@media (max-width: 768px) {
    .services-grid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .services-grid > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    #multi-step-form {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: calc(100vw - 1rem) !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    #multi-step-form {
        max-width: calc(100vw - 0.5rem) !important;
    }
}

/* Ensure no inherited margins from global styles */
section {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Fix any potential flexbox centering issues */
.services-grid {
    display: block !important;
    text-align: center !important;
}

.services-grid > .container {
    text-align: left !important;
    display: block !important;
}/*
 ========================================
   MOBILE CONTENT VISIBILITY FIX
   ======================================== */

/* Remove all height and overflow restrictions on mobile */
@media (max-width: 768px) {
    /* Allow full content expansion on mobile */
    #multi-step-form {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }

    #review-content {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }

    .form-step {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }

    .step-content {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }

    /* Ensure custom dropdown can expand fully */
    .custom-dropdown-options {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        border-radius: 16px 16px 0 0 !important;
        z-index: 10000 !important;
    }

    .custom-dropdown-list {
        max-height: calc(70vh - 60px) !important;
        overflow-y: auto !important;
    }

    /* Ensure all form sections can expand */
    #personal-info-form,
    .upload-section,
    .review-section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Remove any container height restrictions */
    .services-grid,
    .services-grid .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - ensure even more space */
    .custom-dropdown-options {
        max-height: 80vh !important;
    }

    .custom-dropdown-list {
        max-height: calc(80vh - 60px) !important;
    }

    /* Ensure form has enough space */
    #multi-step-form {
        min-height: auto !important;
        height: auto !important;
    }
}

/* Ensure dropdown backdrop works properly on mobile */
@media (max-width: 768px) {
    .custom-dropdown.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        animation: fadeIn 0.3s ease;
    }
}

/* Override any parent container restrictions */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Allow sections to expand naturally */
    section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}/* ====
====================================
   OVERRIDE SERVICES.CSS MOBILE RESTRICTIONS
   ======================================== */

/* Ensure services.css doesn't restrict mobile layout */
@media (max-width: 768px) {
    /* Override any services grid restrictions */
    .services-grid {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 1rem !important;
    }

    .services-grid .container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
    }

    /* Ensure hero section doesn't interfere */
    .hero {
        overflow: visible !important;
        height: auto !important;
        min-height: 300px !important;
    }

    .hero-overlay {
        overflow: visible !important;
        height: auto !important;
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        padding: 0.5rem !important;
    }

    .hero {
        min-height: 250px !important;
    }

    .hero-overlay {
        padding: 10px !important;
    }
}

/* Ensure no global restrictions affect mobile content */
@media (max-width: 768px) {
    * {
        max-height: none !important;
    }

    /* Only allow specific elements to have height restrictions */
    .custom-dropdown-list,
    .custom-dropdown-options {
        max-height: 70vh !important;
    }

    /* Ensure buttons and interactive elements are visible */
    .btn-next,
    .btn-prev,
    .btn-submit,
    .step-actions button {
        overflow: visible !important;
        height: auto !important;
        min-height: 44px !important;
    }
}

/* ========================================
   ULTIMATE MOBILE VISIBILITY FIX - FORCE EVERYTHING VISIBLE
   ======================================== */

/* Remove ALL height and overflow restrictions globally on mobile */
@media (max-width: 768px) {
    /* Force all containers to be fully visible - but be more selective */
    #multi-step-form,
    .form-step,
    .step-content,
    #review-content,
    .review-section,
    #personal-info-form,
    .upload-section,
    .services-grid,
    .container,
    .step-progress-container {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Specific overrides for main containers */
    #multi-step-form,
    .form-step,
    .step-content,
    #review-content,
    .review-section,
    #personal-info-form,
    .upload-section,
    .services-grid,
    .container,
    .step-progress-container {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        position: relative !important;
    }

    /* Custom dropdown - make it a reasonable size on mobile */
    .custom-dropdown-options {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 70vh !important;
        height: auto !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        background: white !important;
        border-radius: 16px 16px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    }

    .custom-dropdown-search {
        flex-shrink: 0 !important;
        padding: 1rem !important;
        padding-right: 60px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        background: #f8f9fa !important;
        position: relative !important;
    }

    .custom-dropdown-list {
        flex: 1 !important;
        overflow-y: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 0 !important;
    }

    /* Ensure dropdown options are fully visible */
    .custom-dropdown-option {
        padding: 1rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.5 !important;
    }

    /* Style the close button for mobile dropdown */
    .dropdown-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(220, 53, 69, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #dc3545;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .dropdown-close-btn:hover {
        background: rgba(220, 53, 69, 0.2);
        color: #c82333;
        transform: scale(1.05);
    }

    .dropdown-close-btn:active {
        transform: scale(0.95);
    }

    /* Ensure body can scroll when dropdown is open */
    body.dropdown-open {
        overflow: hidden !important;
    }

    /* Override any parent restrictions */
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* Ensure sections don't clip content */
    section {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Make sure all text is visible */
    p, h1, h2, h3, h4, h5, h6, div, span, label {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Ensure buttons are fully visible */
    button, .btn, .btn-next, .btn-prev, .btn-submit {
        overflow: visible !important;
        height: auto !important;
        min-height: 44px !important;
        max-height: none !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure form fields are fully visible */
    input, select, textarea {
        overflow: visible !important;
        height: auto !important;
        min-height: 44px !important;
        max-height: none !important;
    }

    /* Remove any transform that might clip content */
    * {
        transform: none !important;
    }
}

/* Extra small screens - reasonable size */
@media (max-width: 480px) {
    .custom-dropdown-options {
        max-height: 60vh !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .custom-dropdown-option {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    #multi-step-form {
        padding: 0.5rem !important;
        margin: 0 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
    }
}

/* ========================================
   CLOSE BUTTON ADDITIONAL STYLING
   ======================================== */

/* Ensure close button is always visible and accessible */
.dropdown-close-btn {
    position: absolute !important;
    top: 50% !important;
    right: 1rem !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #666 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    outline: none !important;
}

.dropdown-close-btn:hover {
    background: rgba(0,0,0,0.2) !important;
    color: #333 !important;
}

.dropdown-close-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.dropdown-close-btn:focus {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Ensure search container has proper positioning for close button */
.custom-dropdown-search {
    position: relative !important;
    padding-right: 60px !important;
}

.custom-dropdown-search input {
    padding-right: 50px !important;
}

.custom-dropdown-search .fa-search {
    position: absolute !important;
    right: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #999 !important;
    pointer-events: none !important;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .dropdown-close-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
    }

    .custom-dropdown-search {
        padding-right: 65px !important;
    }

    .custom-dropdown-search input {
        padding-right: 55px !important;
    }

    .custom-dropdown-search .fa-search {
        right: 55px !important;
    }
}

@media (max-width: 480px) {
    .dropdown-close-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }

    .custom-dropdown-search {
        padding-right: 70px !important;
    }

    .custom-dropdown-search input {
        padding-right: 60px !important;
    }

    .custom-dropdown-search .fa-search {
        right: 60px !important;
    }
}/* 
========================================
   PORTAL DROPDOWN STYLES
   ======================================== */

/* Styles for the dropdown when it's portaled to body */
#dropdown-portal {
    animation: fadeIn 0.3s ease;
}

#dropdown-portal .custom-dropdown-options {
    animation: slideUpFromBottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#dropdown-portal .custom-dropdown-search {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    position: relative;
}

#dropdown-portal .custom-dropdown-search input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

#dropdown-portal .custom-dropdown-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#dropdown-portal .custom-dropdown-search .fa-search {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

#dropdown-portal .dropdown-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc3545;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

#dropdown-portal .dropdown-close-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #c82333;
    transform: scale(1.05);
}

#dropdown-portal .custom-dropdown-list {
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    padding: 0;
}

#dropdown-portal .custom-dropdown-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#dropdown-portal .custom-dropdown-option:last-child {
    border-bottom: none;
}

#dropdown-portal .custom-dropdown-option:hover {
    background: linear-gradient(90deg, #f8f9ff, #ffffff);
    color: #667eea;
    padding-left: 2rem;
}

#dropdown-portal .custom-dropdown-option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

#dropdown-portal .custom-dropdown-option.selected:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    padding-left: 1.5rem;
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when portal is open */
body.dropdown-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Mobile specific portal styles */
@media (max-width: 480px) {
    #dropdown-portal .custom-dropdown-options {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }

    #dropdown-portal .custom-dropdown-search {
        padding: 0.75rem;
        border-radius: 12px 12px 0 0;
    }

    #dropdown-portal .custom-dropdown-option {
        padding: 1.25rem 1rem;
        font-size: 0.95rem;
    }

    #dropdown-portal .custom-dropdown-option:hover {
        padding-left: 1.5rem;
    }
}/* 
========================================
   SERVICE CARDS - MOBILE FRIENDLY ALTERNATIVE
   ======================================== */

.service-cards-container {
    width: 100%;
    margin-bottom: 2rem;
}

.login-required-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.login-required-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.service-search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.service-search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.service-search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.service-search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.service-card-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.service-card-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.service-card-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 1;
}

.service-card-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.service-card-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.3;
}

.service-card-item.hidden {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
        max-height: 350px;
        gap: 0.75rem;
    }

    .service-card-item {
        padding: 0.875rem;
        min-height: 60px;
        gap: 1rem;
    }

    .service-card-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1.3rem;
        flex-shrink: 0;
        flex-grow: 0;
        aspect-ratio: 1;
    }

    .service-card-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .service-card-content h4 {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .service-card-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .service-cards-grid {
        max-height: 300px;
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .service-card-item {
        padding: 0.75rem;
        min-height: 55px;
        gap: 0.875rem;
        display: flex;
        align-items: center;
    }

    .service-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 1.2rem;
        flex-shrink: 0;
        flex-grow: 0;
        aspect-ratio: 1;
    }

    .service-card-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .service-card-content h4 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-card-content p {
        font-size: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .service-search-box input {
        padding: 10px 40px 10px 12px;
        font-size: 0.95rem;
    }
}

/* Scrollbar styling for service cards */
.service-cards-grid::-webkit-scrollbar {
    width: 8px;
}

.service-cards-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.service-cards-grid::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.service-cards-grid::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}/* 
========================================
   EXTRA SMALL SCREENS - PREVENT ICON SQUISHING
   ======================================== */

@media (max-width: 360px) {
    .service-card-item {
        padding: 0.625rem;
        gap: 0.75rem;
        min-height: 50px;
    }

    .service-card-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1.1rem;
        flex-shrink: 0;
        flex-grow: 0;
        aspect-ratio: 1 / 1;
    }

    .service-card-content h4 {
        font-size: 0.85rem;
        line-height: 1.1;
        margin-bottom: 0.15rem;
    }

    .service-card-content p {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .service-cards-grid {
        max-height: 280px;
        gap: 0.375rem;
        padding: 0.25rem;
    }
}

/* Force aspect ratio maintenance for all screen sizes */
.service-card-icon {
    position: relative;
    overflow: hidden;
}

.service-card-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.service-card-icon i {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure grid items don't compress */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .service-card-item {
        width: 100% !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }
}


/* Request Another Document Button and Service List Styles */
.review-section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-add-service {
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-service:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-add-service:active {
    transform: translateY(0);
}

.btn-add-service i {
    font-size: 1.1rem;
}

.requested-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-request-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s;
}

.service-request-item.current-service {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-color: #667eea;
}

.service-request-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.service-request-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-request-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.service-request-name {
    flex: 1;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.service-request-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-remove-service {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-remove-service:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-remove-service i {
    font-size: 0.9rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-section-header-with-button {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-service {
        width: 100%;
        justify-content: center;
    }
    
    .service-request-header {
        flex-wrap: wrap;
    }
    
    .service-request-name {
        flex-basis: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .btn-add-service {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .service-request-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .service-request-name {
        font-size: 0.9rem;
    }
    
    .btn-remove-service {
        width: 28px;
        height: 28px;
    }
}
