/**
 * TGP Custom Ordering - Main Stylesheet
 * 
 * This stylesheet contains all the styles for the plugin's public-facing components.
 */

/* Global Styles */
:root {
    --tgpco-primary: #9769ff;
    --tgpco-primary-hover: #8655f4;
    --tgpco-secondary: #1a1a1a;
    --tgpco-text: #e0e0e0;
    --tgpco-text-muted: #999;
    --tgpco-border: #333;
    --tgpco-gradient: linear-gradient(135deg, #9769ff 0%, #8655f4 100%);
    --tgpco-gradient-hover: linear-gradient(135deg, #8655f4 0%, #7442e0 100%);
}

/* Dashboard Custom Services Tab */
.tgpco-custom-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Store Page Custom Services Tab */
.tgpco-services-container {
    padding: 20px 0;
}

.tgpco-services-intro {
    margin-bottom: 30px;
}

.tgpco-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tgpco-service-card {
    background-color: #292929;
    border-radius: 8px;
    border: 1px solid var(--tgpco-border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tgpco-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tgpco-service-header {
    background-color: var(--tgpco-secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-service-title {
    margin: 0 0 5px;
    color: #fff;
    font-size: 18px;
}

.tgpco-service-type {
    display: inline-block;
    background-color: #444;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.tgpco-service-body {
    padding: 20px;
    color: var(--tgpco-text);
}

.tgpco-service-description {
    margin-bottom: 20px;
    font-size: 14px;
}

.tgpco-service-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.tgpco-meta-item {
    display: flex;
    flex-direction: column;
}

.tgpco-meta-label {
    font-size: 12px;
    color: var(--tgpco-text-muted);
    margin-bottom: 5px;
}

.tgpco-meta-value {
    font-size: 16px;
    font-weight: 500;
}

.tgpco-price {
    color: var(--tgpco-primary);
    font-weight: 700;
}

.tgpco-service-addons,
.tgpco-service-daw {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--tgpco-border);
}

.tgpco-service-addons h6,
.tgpco-service-daw h6 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--tgpco-text-muted);
}

.tgpco-addon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgpco-addon-list li {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 13px;
}

.tgpco-addon-name {
    flex: 1;
}

.tgpco-addon-price {
    color: var(--tgpco-primary);
    margin-left: 10px;
    font-weight: 500;
}

.tgpco-addon-description {
    flex-basis: 100%;
    color: var(--tgpco-text-muted);
    font-size: 12px;
    margin-top: 3px;
}

.tgpco-daw-list {
    font-size: 13px;
    color: #ccc;
}

.tgpco-service-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--tgpco-border);
    text-align: center;
}

.tgpco-order-service-btn {
    background: var(--tgpco-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tgpco-order-service-btn:hover {
    background: var(--tgpco-gradient-hover);
    transform: translateY(-2px);
}

.tgpco-own-service-notice {
    color: var(--tgpco-text-muted);
    font-style: italic;
}

.tgpco-no-services {
    text-align: center;
    padding: 50px 20px;
    color: var(--tgpco-text-muted);
}

/* Order Form Styles */
.tgpco-order-form {
    color: var(--tgpco-text);
}

.tgpco-order-service-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-order-service-info h4 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.tgpco-service-type-badge {
    display: inline-block;
    background-color: var(--tgpco-primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.tgpco-addons-list {
    margin-bottom: 15px;
}

.tgpco-addon-price {
    color: var(--tgpco-primary);
    margin-left: 5px;
}

.tgpco-addon-description {
    display: block;
    font-size: 12px;
    color: var(--tgpco-text-muted);
    margin-top: 2px;
}

.tgpco-price-breakdown {
    background-color: var(--tgpco-secondary);
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
}

.tgpco-price-breakdown h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
}

.tgpco-price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-price-item:last-of-type {
    border-bottom: none;
    margin-bottom: 5px;
}

.tgpco-price-label {
    color: #ccc;
}

.tgpco-price-value {
    font-weight: 500;
    color: #fff;
}

.tgpco-total-price-amount {
    color: var(--tgpco-primary);
    font-weight: 700;
}

.tgpco-deposit-info {
    color: var(--tgpco-text-muted);
    font-size: 12px;
    margin-top: 10px;
}

.tgpco-terms {
    margin: 20px 0;
}

.tgpco-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.tgpco-file-preview {
    font-size: 14px;
}

/* Custom Checkout Styles */
.tgpco-checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #292929;
    border-radius: 8px;
}

.tgpco-checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.tgpco-checkout-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.tgpco-checkout-summary {
    flex: 1;
    min-width: 300px;
}

.tgpco-checkout-payment {
    flex: 2;
    min-width: 350px;
}

.tgpco-checkout-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-checkout-service {
    display: flex;
    margin-bottom: 15px;
}

.tgpco-checkout-service-details {
    flex: 1;
}

.tgpco-checkout-service-name {
    font-weight: 500;
}

.tgpco-checkout-service-meta {
    font-size: 13px;
    color: var(--tgpco-text-muted);
}

.tgpco-checkout-service-price {
    font-weight: 600;
    color: var(--tgpco-primary);
}

.tgpco-checkout-addons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--tgpco-border);
}

.tgpco-checkout-addon {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.tgpco-checkout-deposit-notice {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(151, 105, 255, 0.1);
    border-left: 3px solid var(--tgpco-primary);
    font-size: 14px;
}

/* Order Management Styles */
.tgpco-order-card {
    background-color: #292929;
    border-radius: 8px;
    border: 1px solid var(--tgpco-border);
    margin-bottom: 20px;
    overflow: hidden;
}

.tgpco-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--tgpco-secondary);
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-order-id {
    font-weight: 500;
    font-size: 16px;
}

.tgpco-order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tgpco-status-pending {
    background-color: #f9ab58;
    color: #222;
}

.tgpco-status-awaiting-deposit {
    background-color: #f9ab58;
    color: #222;
}

.tgpco-status-in-progress {
    background-color: #58c3f9;
    color: #222;
}

.tgpco-status-demo-delivered {
    background-color: #9769ff;
    color: #fff;
}

.tgpco-status-demo-approved {
    background-color: #58f99c;
    color: #222;
}

.tgpco-status-demo-rejected {
    background-color: #f95858;
    color: #fff;
}

.tgpco-status-revision-requested {
    background-color: #f9ab58;
    color: #222;
}

.tgpco-status-awaiting-payment {
    background-color: #f9ab58;
    color: #222;
}

.tgpco-status-completed {
    background-color: #58f99c;
    color: #222;
}

.tgpco-status-cancelled {
    background-color: #f95858;
    color: #fff;
}

.tgpco-status-refunded {
    background-color: #f95858;
    color: #fff;
}

.tgpco-order-body {
    padding: 20px;
}

.tgpco-order-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tgpco-order-detail-item {
    display: flex;
    flex-direction: column;
}

.tgpco-order-detail-label {
    font-size: 12px;
    color: var(--tgpco-text-muted);
    margin-bottom: 5px;
}

.tgpco-order-detail-value {
    font-size: 15px;
    font-weight: 500;
}

.tgpco-order-timeline {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 2px solid var(--tgpco-border);
}

.tgpco-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.tgpco-timeline-item:last-child {
    padding-bottom: 0;
}

.tgpco-timeline-item:before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--tgpco-primary);
}

.tgpco-timeline-date {
    font-size: 12px;
    color: var(--tgpco-text-muted);
    margin-bottom: 5px;
}

.tgpco-timeline-content {
    background-color: rgba(151, 105, 255, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tgpco-timeline-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.tgpco-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tgpco-border);
}

.tgpco-action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tgpco-btn-primary {
    background: var(--tgpco-gradient);
    color: #fff;
    border: none;
}

.tgpco-btn-primary:hover {
    background: var(--tgpco-gradient-hover);
}

.tgpco-btn-secondary {
    background: #444;
    color: #fff;
    border: none;
}

.tgpco-btn-secondary:hover {
    background: #555;
}

.tgpco-btn-danger {
    background: #f95858;
    color: #fff;
    border: none;
}

.tgpco-btn-danger:hover {
    background: #e84747;
}

/* Chat System Styles */
.tgpco-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--tgpco-border);
    border-radius: 8px;
    overflow: hidden;
}

.tgpco-chat-header {
    padding: 15px;
    background-color: var(--tgpco-secondary);
    border-bottom: 1px solid var(--tgpco-border);
}

.tgpco-chat-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.tgpco-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #292929;
}

.tgpco-chat-message {
    margin-bottom: 15px;
}

.tgpco-chat-message-content {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.tgpco-chat-message-sender {
    font-size: 12px;
    margin-bottom: 3px;
    color: var(--tgpco-text-muted);
}

.tgpco-chat-message-time {
    font-size: 11px;
    color: var(--tgpco-text-muted);
    margin-top: 3px;
}

.tgpco-chat-message-outgoing {
    text-align: right;
}

.tgpco-chat-message-outgoing .tgpco-chat-message-content {
    background-color: var(--tgpco-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.tgpco-chat-message-incoming .tgpco-chat-message-content {
    background-color: #444;
    color: #fff;
    border-bottom-left-radius: 4px;
}

.tgpco-chat-file {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.tgpco-chat-file-icon {
    margin-right: 10px;
    font-size: 18px;
}

.tgpco-chat-file-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgpco-chat-file-download {
    margin-left: 10px;
}

.tgpco-chat-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--tgpco-secondary);
    border-top: 1px solid var(--tgpco-border);
}

.tgpco-chat-input-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--tgpco-border);
    border-radius: 20px;
    background-color: #292929;
    color: var(--tgpco-text);
    resize: none;
}

.tgpco-chat-input-field:focus {
    outline: none;
    border-color: var(--tgpco-primary);
}

.tgpco-chat-file-btn,
.tgpco-chat-send-btn,
.tgpco-chat-emoji-btn {
    background: none;
    border: none;
    color: var(--tgpco-text);
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.tgpco-chat-file-btn:hover,
.tgpco-chat-send-btn:hover,
.tgpco-chat-emoji-btn:hover {
    color: var(--tgpco-primary);
}

.tgpco-emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 15px;
    z-index: 1000;
    background: #292929;
    border: 1px solid var(--tgpco-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.tgpco-chat-attachment-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tgpco-attachment-name {
    font-size: 13px;
    color: var(--tgpco-text);
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgpco-remove-attachment {
    background: none;
    border: none;
    color: var(--tgpco-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.3s;
}

.tgpco-remove-attachment:hover {
    color: #f95858;
}

.tgpco-chat-attachment-input {
    display: none;
}

.tgpco-chat-attachment-label {
    cursor: pointer;
    padding: 10px;
    color: var(--tgpco-text);
    transition: color 0.3s;
}

.tgpco-chat-attachment-label:hover {
    color: var(--tgpco-primary);
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .tgpco-services-list {
        grid-template-columns: 1fr;
    }
    
    .tgpco-service-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tgpco-order-service-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tgpco-service-type-badge {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .tgpco-form-actions {
        flex-direction: column;
    }
    
    .tgpco-form-actions button {
        margin-bottom: 10px;
    }
    
    .tgpco-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tgpco-order-status {
        margin-top: 10px;
    }
    
    .tgpco-order-details {
        grid-template-columns: 1fr;
    }
}

/**
 * TGP Custom Ordering Styles
 */

/* Custom Services Page */
.card-stretch {
    height: calc(100vh - 200px);
    overflow: auto;
}

/* Dashboard styling */
.nk-block-title {
    color: #fff;
}

.nk-block-des p {
    color: #aaa;
}

/* Addon Items */
.addon-item {
    background-color: #2b3439;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #3a4046;
}

.addon-item .form-label {
    color: #e5e5e5;
}

/* Form Styling */
.modal-content {
    border-radius: 6px;
    background-color: #1f2226;
    color: #fff;
}

.modal-header {
    border-bottom-color: #2e3439;
}

.modal-footer {
    border-top-color: #2e3439;
}

.form-label {
    color: #e5e5e5;
}

.form-control {
    background-color: #2b3035;
    border-color: #3a4046;
    color: #fff;
}

.form-control:focus {
    background-color: #272c31;
    border-color: #4d545d;
    color: #fff;
}

select.form-select {
    background-color: #2b3035;
    border: 1px solid #3a4046;
    color: #fff;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder style for the default / unselected option */
select.form-select option[value=""] {
    color: #9ca3af;
}

.custom-control-label {
    color: #ddd;
}

/* DAW Options Grid */
.daw-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Service list */
.nk-tb-list.nk-tb-ulist .nk-tb-item {
    background-color: #1c1f24;
    border-bottom-color: #2a2f35;
}

.nk-tb-list.nk-tb-ulist .nk-tb-item:hover {
    background-color: #26292e;
}

.nk-tb-list .nk-tb-head .sub-text {
    color: #7f8dff;
}

/* Status indicators */
.tb-status.text-success {
    color: #1ee0ac !important;
}

.tb-status.text-danger {
    color: #e85347 !important;
}

/* Store Page Services Tab */
.tgpco-service-card {
    background-color: #2b3035;
    border-radius: 6px;
    border: 1px solid #3a4046;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.tgpco-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tgpco-service-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.tgpco-service-type {
    color: #7f8dff;
    font-size: 14px;
    margin-bottom: 15px;
}

.tgpco-service-description {
    color: #aaa;
    margin-bottom: 15px;
}

.tgpco-service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tgpco-service-meta-item {
    display: flex;
    flex-direction: column;
}

.tgpco-service-meta-label {
    color: #e5e5e5;
    font-size: 12px;
}

.tgpco-service-meta-value {
    color: #fff;
    font-weight: bold;
}

.tgpco-service-price {
    color: #1ee0ac;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tgpco-service-addons {
    margin-bottom: 15px;
}

.tgpco-service-addon {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #3a4046;
}

.tgpco-service-addon-name {
    color: #e5e5e5;
}

.tgpco-service-addon-price {
    color: #1ee0ac;
}

.tgpco-order-service-btn {
    width: 100%;
}

/* Order Form */
.tgpco-order-form {
    background-color: #2b3035;
    border-radius: 6px;
    border: 1px solid #3a4046;
    padding: 20px;
    margin-top: 20px;
}

.tgpco-order-form-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.tgpco-order-form .form-group {
    margin-bottom: 20px;
}

.tgpco-file-upload {
    border: 2px dashed #3a4046;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgpco-file-upload:hover {
    border-color: #7f8dff;
}

.tgpco-file-upload-icon {
    font-size: 24px;
    color: #7f8dff;
    margin-bottom: 10px;
}

.tgpco-file-upload-text {
    color: #e5e5e5;
}

.tgpco-file-upload-input {
    display: none;
}

.tgpco-uploaded-files {
    margin-top: 15px;
}

.tgpco-uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c1f24;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
}

.tgpco-uploaded-file-name {
    color: #e5e5e5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tgpco-uploaded-file-remove {
    color: #e85347;
    cursor: pointer;
    margin-left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .daw-options-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tgpco-service-meta {
        flex-wrap: wrap;
    }
    
    .tgpco-service-meta-item {
        flex-basis: 50%;
    }
}

/* Service Modal Step-by-Step Flow */
.setup-progress {
    position: relative;
    margin-bottom: 2rem;
}

.setup-progress .progress {
    background-color: #2b3035;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.setup-progress .progress-bar {
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.setup-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: -10px;
}

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

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #2b3035;
    border: 2px solid #3a4046;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: #1ee0ac;
    border-color: #1ee0ac;
    color: white;
}

.step-label {
    color: #adb5bd;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
}

.step.completed .step-label {
    color: #1ee0ac;
}

/* Setup Content Sections */
.setup-content {
    animation: fadeIn 0.3s ease-out;
}

.setup-header {
    margin-bottom: 2rem;
}

.setup-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.setup-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

/* Form Enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.description-tips {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

.description-tips li {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.description-tips li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Input Group Styling */
.input-group-text {
    background-color: #2b3035;
    border-color: #3a4046;
    color: var(--text-muted);
}

/* Button Enhancements */
.btn-outline-light {
    border-color: #3a4046;
    color: var(--text-secondary);
}

.btn-outline-light:hover {
    background-color: #3a4046;
    border-color: #3a4046;
    color: var(--text-primary);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Modal Enhancements */
.modal-content {
    background-color: #1f2226;
    border: 1px solid #2e3439;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #1f2226;
    border-bottom: 1px solid #2e3439;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    background-color: #1f2226;
    border-top: 1px solid #2e3439;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 0.2s;
}

.close:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* DAW Options Grid */
.daw-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #2b3035;
    border-radius: 8px;
    padding: 1rem;
}

/* Add-ons Section */
.addons-container {
    background-color: #2b3035;
    border-radius: 8px;
    padding: 1rem;
}

.addon-item {
    background-color: #1f2226;
    border: 1px solid #3a4046;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.addon-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.addon-item:last-child {
    margin-bottom: 0;
}

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

/* Fix for browser overriding select styles in modal */
.tgpco-modal-body select.form-select {
    background: #2b3035 !important;
    background-image: none !important;
    color: #e5e5e5 !important;
    border: 1px solid #3a4046 !important;
    height: 42px !important;
    line-height: 40px !important;
    padding: 0 0.75rem !important;
    border-radius: 4px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.tgpco-modal-body select.form-select:focus {
    background-color: #272c31 !important;
    border-color: #4d545d !important;
    color: #fff !important;
}

/* Custom select styling for Service Type dropdown */
.tgpco-service-type-select {
    background: #2b3035 !important;
    color: #e5e5e5 !important;
    border: 1px solid #3a4046 !important;
    width: 100% !important;
    padding: 0.55rem 2.5rem 0.55rem 0.75rem !important; /* extra right space for arrow */
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    min-height: 42px !important; /* ensure full height so text is not clipped */
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a6b9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px 12px !important;
}

.tgpco-service-type-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(112, 86, 248, 0.2) !important;
    background-color: #272c31 !important;
}

.tgpco-service-type-select option[value=""] {
    color: #9ca3af;
}

/* Dark theme overrides for Select2 single */
#serviceModal .select2-container--default .select2-selection--single {
    background-color: #2b3035 !important;
    border: 1px solid #3a4046 !important;
    border-radius: 4px !important;
    height: 42px !important;
    padding: 0.55rem 2.5rem 0.55rem 0.75rem !important;
    color: #e5e5e5 !important;
}

#serviceModal .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e5e5e5 !important;
    line-height: 28px !important;
}

#serviceModal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 10px !important;
}

#serviceModal .select2-dropdown {
    background-color: #2b3035 !important;
    border: 1px solid #3a4046 !important;
    color: #e5e5e5 !important;
}

#serviceModal .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

#serviceModal .select2-results__option--highlighted {
    background-color: var(--primary-color) !important;
    color: #fff !important;
} 

/* PayPal button text color fix */
#paypal-button-container iframe,
#paypal-button-container div[data-funding-source] {
    color: #fff !important;
}

#paypal-button-container .paypal-button-text,
#paypal-button-container .paypal-button-label-container,
#paypal-button-container .paypal-button-label,
#paypal-button-container .paypal-button-tagline {
    color: #fff !important;
}

/* PayPal card payment button text color fix */
#paypal-button-container [data-funding-source="card"] .paypal-button-text,
#paypal-button-container [data-funding-source="card"] .paypal-button-label,
#paypal-button-container [data-funding-source="card"] .paypal-button-label-container,
#paypal-button-container [data-funding-source="card"] .paypal-button-tagline {
    color: #fff !important;
}

/* PayPal container bright background for better text readability */
#paypal-button-container {
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 15px !important;
}

/* Loading Spinner for Order Buttons */
.tgp-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: tgp-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Button States */
.service-btn:disabled,
.tgpco-order-service-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile-specific button fixes */
@media (max-width: 768px) {
    .service-btn,
    .tgpco-order-service-btn {
        min-height: 44px !important; /* Touch-friendly */
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important;
        z-index: 10 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transition: all 0.2s ease !important;
        /* Ensure buttons are always clickable on mobile */
        pointer-events: auto !important;
        cursor: pointer !important;
        /* Prevent text selection on mobile */
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Mobile touch feedback */
    .service-btn.touch-active,
    .tgpco-order-service-btn.touch-active {
        transform: scale(0.95) !important;
        opacity: 0.8 !important;
    }
    
    /* Ensure service cards don't block button clicks */
    .service-card {
        pointer-events: auto !important;
        overflow: visible !important;
    }
    
    .service-content {
        pointer-events: none !important;
    }
    
    .service-content > * {
        pointer-events: auto !important;
    }
    
    /* Fix for service buttons being blocked by overlays */
    .service-actions {
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
    }
}

.service-btn.loading,
.tgpco-order-service-btn.loading {
    position: relative;
    color: transparent;
}

.service-btn.loading::after,
.tgpco-order-service-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: tgp-spin 1s ease-in-out infinite;
}