/* ========================================
   CargoEKS - Teklif Sayfası CSS
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1A3A5C 0%, #2D5A87 100%);
    padding: 120px 0 40px;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-orange);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

/* Form Section */
.form-section {
    padding: 40px 0;
    background: #F0F4F8;
    min-height: calc(100vh - 300px);
}

/* Form Cards */
.form-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.form-card-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.form-card-header i {
    font-size: 1.3rem;
}

.form-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* Card Header Colors */
.sender-card .form-card-header {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.receiver-card .form-card-header {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.shipment-card .form-card-header {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.form-card-body {
    padding: 25px;
}

/* Form Elements */
.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.required {
    color: #EF4444;
    font-weight: 700;
}

.form-control,
.form-select {
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: #FFFEF5;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.15);
    background-color: var(--white);
}

.form-control::placeholder {
    color: #9CA3AF;
}

/* Input Group */
.input-group .form-control {
    border-right: none;
}

.input-group .input-group-text {
    background: #F3F4F6;
    border: 2px solid #E5E7EB;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary-orange);
}

/* Form Check */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.15);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding-left: 5px;
    cursor: pointer;
}

/* Select Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F7941D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 12px;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #F7941D 0%, #FF6B35 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.5);
    color: var(--white);
}

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

/* Footer Simple */
.footer-simple {
    padding: 25px 0;
    background: var(--dark-blue);
}

.footer-logo-small {
    height: 35px;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-header {
        padding: 100px 0 30px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .form-section {
        padding: 25px 15px;
    }

    .form-card-body {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 90px 0 25px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .form-card-header {
        padding: 15px 20px;
    }

    .form-card-header h3 {
        font-size: 1rem;
    }

    .btn-submit {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .footer-simple {
        text-align: center;
    }

    .footer-logo-small {
        margin-bottom: 10px;
    }
}

/* Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #10B981;
    background-color: #ECFDF5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: fadeIn 0.5s ease forwards;
}

.sender-card {
    animation-delay: 0.1s;
}

.receiver-card {
    animation-delay: 0.2s;
}

.shipment-card {
    animation-delay: 0.3s;
}

/* Tooltip Styling */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #E5E7EB;
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-left: 5px;
    cursor: help;
}

/* Service Type Visual Selector (Optional Enhancement) */
.service-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.service-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-option:hover {
    border-color: var(--primary-orange);
    background: rgba(247, 148, 29, 0.05);
}

.service-option.selected {
    border-color: var(--primary-orange);
    background: rgba(247, 148, 29, 0.1);
}

.service-option img {
    height: 40px;
    margin-bottom: 10px;
}

.service-option span {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
}

/* Invoice Card */
.invoice-card .form-card-header {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.invoice-card {
    animation-delay: 0.4s;
}

/* Package Row Styles */
.packages-container {
    margin-top: 10px;
}

.package-row {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.package-row:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(247, 148, 29, 0.1);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}

.package-title {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.package-remove {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-remove:hover {
    background: #DC2626;
    color: white;
}

/* Invoice Row Styles */
.invoice-row {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.invoice-row:hover {
    border-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.invoice-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.invoice-remove:hover {
    background: #DC2626;
    color: white;
}

.invoice-total {
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.invoice-total span {
    color: #10B981;
    font-size: 1.3rem;
}

/* Add Button Styles */
.btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

/* Responsive for packages and invoice */
@media (max-width: 767.98px) {
    .package-row .row,
    .invoice-row .row {
        gap: 10px;
    }

    .package-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .invoice-remove {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
    }

    .invoice-total {
        font-size: 1rem;
    }

    .invoice-total span {
        font-size: 1.1rem;
    }

    .mt-3.d-flex {
        flex-direction: column;
        gap: 15px;
    }
}
