/* Used Gear Market - Listing Form Styles */
.ugm-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: var(--theme-palette-color-4, #121212);
    border: 1px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: var(--theme-palette-color-8, #ffffff);
}

/* Center the main heading */
.ugm-form-container h3 {
    text-align: center;
    margin-bottom: 10px;
}

.ugm-form-subtitle {
    color: var(--theme-palette-color-6, #99a5af);
    font-style: italic;
    font-size: 0.95em;
    margin: -10px 0 25px 0;
    opacity: 0.8;
    text-align: center;
}

.ugm-field-help {
    color: var(--theme-palette-color-6, #99a5af);
    font-size: 0.9em;
    margin-top: 6px;
    display: block;
    opacity: 0.8;
}

/* Better structured sections with VISIBLE borders */
.ugm-fieldset {
    border: 2px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.6) !important;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    background: rgba(var(--theme-palette-color-4, 18, 18, 18), 0.15);
    position: relative;
}

/* Larger, more prominent section headings */
.ugm-fieldset legend {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--theme-palette-color-7, #70cce5);
    padding: 8px 15px;
    background: var(--theme-palette-color-4, #121212);
    border: 1px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.6);
    border-radius: 6px;
}

.ugm-field-group {
    margin: 18px 0;
}

.ugm-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--theme-palette-color-5, #e8ebed);
}

/* Consistent input field styling - ALL form elements get borders */
.ugm-field-group input,
.ugm-field-group textarea,
.ugm-field-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.7) !important;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: rgba(var(--theme-palette-color-8, 255, 255, 255), 0.05) !important;
    color: var(--theme-palette-color-8, #ffffff);
    transition: all 0.3s ease;
}

.ugm-field-group input:focus,
.ugm-field-group textarea:focus,
.ugm-field-group select:focus {
    border-color: var(--theme-palette-color-1, #00a1cd) !important;
    outline: none;
    box-shadow: 0 0 8px rgba(var(--theme-palette-color-1, 0, 161, 205), 0.3);
    background: rgba(var(--theme-palette-color-8, 255, 255, 255), 0.08) !important;
}

.ugm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Service level options with OBVIOUS hover effects */
.ugm-service-level-option {
    border: 2px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.5);
    border-radius: 8px;
    padding: 18px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--theme-palette-color-4, 18, 18, 18), 0.2);
}

.ugm-service-level-option:hover {
    border-color: var(--theme-palette-color-1, #00a1cd) !important;
    background: rgba(var(--theme-palette-color-1, 0, 161, 205), 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--theme-palette-color-1, 0, 161, 205), 0.3);
}

.ugm-service-level-option.ugm-selected {
    border-color: var(--theme-palette-color-1, #00a1cd) !important;
    background: rgba(var(--theme-palette-color-1, 0, 161, 205), 0.25) !important;
    box-shadow: 0 4px 12px rgba(var(--theme-palette-color-1, 0, 161, 205), 0.4);
}

.ugm-service-level-label {
    display: block;
    cursor: pointer;
    color: var(--theme-palette-color-8, #ffffff);
    font-weight: 600;
    margin-bottom: 4px;
}

.ugm-service-level-details {
    display: block;
    color: var(--theme-palette-color-6, #99a5af);
    font-size: 0.9em;
    margin-top: 6px;
    opacity: 0.9;
}

/* Improved fee preview section */
.ugm-fee-preview {
    background: rgba(var(--theme-palette-color-1, 0, 161, 205), 0.05);
    border: 2px solid rgba(var(--theme-palette-color-1, 0, 161, 205), 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.ugm-fee-preview h4 {
    margin: 0 0 18px 0;
    color: var(--theme-palette-color-7, #70cce5);
    font-weight: 700;
    font-size: 1.2em;
    text-align: center;
}

.ugm-fee-explanation {
    color: var(--theme-palette-color-6, #99a5af);
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: center;
}

/* Clean fee breakdown layout */
.ugm-fee-breakdown {
    background: rgba(var(--theme-palette-color-4, 18, 18, 18), 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.ugm-calc-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--theme-palette-color-8, #ffffff);
    font-size: 15px;
}

.ugm-calc-step:not(:last-child) {
    border-bottom: 1px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.2);
}

.ugm-calc-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ugm-calc-step-amount {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: var(--theme-palette-color-1, #00a1cd);
    text-align: right;
}

/* Final total section */
.ugm-calc-step.ugm-final-step {
    border-top: 2px solid var(--theme-palette-color-1, #00a1cd);
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 16px;
}

.ugm-calc-step.ugm-final-step .ugm-calc-step-amount {
    color: var(--theme-palette-color-7, #70cce5);
    font-size: 18px;
}

/* Seller receives section */
.ugm-seller-receives {
    background: rgba(var(--theme-palette-color-7, 112, 204, 229), 0.1);
    border: 1px solid rgba(var(--theme-palette-color-7, 112, 204, 229), 0.3);
    padding: 18px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.ugm-seller-receives .ugm-amount {
    font-size: 1.4em;
    color: var(--theme-palette-color-7, #70cce5);
    font-weight: bold;
    font-family: 'Monaco', 'Menlo', monospace;
}

.ugm-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--theme-palette-color-3, 130, 132, 135), 0.3);
}

/* Minimal button styling - let theme handle most of it */
.ugm-form-actions .button {
    margin: 0 10px;
}

@media (max-width: 600px) {
    .ugm-field-row {
        grid-template-columns: 1fr;
    }
    .ugm-form-container {
        margin: 10px;
        padding: 15px;
    }
    .ugm-form-actions .button {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
}
