/* Mobile-First Design */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.parcel-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #2d3748;
    overflow-x: hidden;
    min-height: 100vh;
}

.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* Header - Better spacing for mobile */
.nav-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px 20px;
    position: relative;
    border-radius: 0 0 20px 20px;
    margin-bottom: 15px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.location-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 11px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.header-content {
    text-align: center;
    padding: 0 10px;
}

.header-content h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.header-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}

/* Form Section */
.form-section {
    padding: 0 15px 100px;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.form-header-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #2d3748;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label i {
    color: #667eea;
    font-size: 11px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

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

.address-input {
    position: relative;
}

.map-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

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

.weight-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.weight-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weight-option.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.weight-value {
    font-size: 14px;
    font-weight: 600;
}

.weight-label {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 15px;
}

.pricing-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.pricing-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.pricing-item {
    text-align: center;
}

.pricing-amount {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pricing-label {
    font-size: 10px;
    opacity: 0.8;
}

.total-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.total-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Fixed Bottom Button */
.bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #cbd5e0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loading Animation */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Distance Info */
.distance-info {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    display: none;
}

.distance-info.show {
    display: block;
}

.distance-text {
    color: #234e52;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.distance-text i {
    color: #319795;
}

/* Success/Error Messages */
.alert-message {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(-80px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.alert-message.show {
    transform: translateY(0);
    opacity: 1;
}

.alert-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.alert-error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.alert-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

/* Step Indicator */
.steps-container {
    padding: 0 15px 15px;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: #667eea;
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.step.active .step-circle {
    background: #667eea;
    color: white;
}

.step.completed .step-circle {
    background: #48bb78;
    color: white;
}

.step-label {
    font-size: 10px;
    color: #718096;
    text-align: center;
    font-weight: 500;
}

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

/* Google Maps Autocomplete */
.pac-container {
    z-index: 10000;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pac-item {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.pac-item:hover {
    background: #f8fafc;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.payment-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4a5568;
}

.payment-option.active .payment-option-icon {
    background: #667eea;
    color: white;
}

.phonepe-icon {
    background: #5f259f;
    color: white;
}

.payment-option-details {
    flex: 1;
}

.payment-option-title {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 2px;
}

.payment-option-desc {
    font-size: 12px;
    color: #718096;
}

.payment-option-check {
    color: #cbd5e0;
    font-size: 20px;
}

.payment-option.active .payment-option-check {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 380px) {
    .nav-header {
        padding: 8px 12px 16px;
    }

    .form-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .form-card {
        padding: 16px;
    }

    .header-content h1 {
        font-size: 20px;
    }

    .header-content p {
        font-size: 12px;
    }

    .bottom-action {
        padding: 12px;
    }
}

/* Enhanced Touch Targets */
button, .form-control, .weight-option {
    min-height: 44px;
}

/* Prevent zoom on input focus */
@media screen and (max-width: 767px) {
    input[type="text"], input[type="tel"], input[type="email"], textarea, select {
        font-size: 16px;
    }
}