/**
 * Public styles for NMX Bike Fitting plugin
 */

.nmx-bike-fitting-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nmx-bike-fitting-form h2 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 28px;
    text-align: center;
}

.nmx-bike-fitting-form > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Form Groups */
.nmx-form-group {
    margin-bottom: 20px;
}

.nmx-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.nmx-form-group input[type="number"],
.nmx-form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.nmx-form-group input[type="number"]:focus,
.nmx-form-group input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

/* Radio Group */
.nmx-radio-group {
    display: flex;
    gap: 20px;
}

.nmx-radio-group label {
    font-weight: normal;
    cursor: pointer;
}

.nmx-radio-group input[type="radio"] {
    margin-right: 5px;
}

/* Form Row */
.nmx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Unit Display */
.nmx-form-group {
    position: relative;
}

.nmx-unit {
    position: absolute;
    right: 15px;
    top: 44px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* Form Actions */
.nmx-form-actions {
    margin-top: 30px;
    text-align: center;
}

.nmx-submit-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.nmx-submit-btn:hover {
    background: #333;
}

.nmx-submit-btn:active {
    transform: scale(0.98);
}

/* Results Section */
.nmx-results {
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    border: 2px solid #1a1a1a;
}

.nmx-results h3 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 24px;
    text-align: center;
}

.nmx-results-content {
    margin: 30px 0;
}

.nmx-result-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    border-left: 4px solid #1a1a1a;
}

.nmx-result-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.nmx-result-item span {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Results Actions */
.nmx-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.nmx-action-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.nmx-action-btn:hover {
    background: #1a1a1a;
    color: white;
}

/* Disclaimer */
.nmx-disclaimer {
    margin-top: 30px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 14px;
    color: #856404;
}

/* Loading */
.nmx-loading {
    text-align: center;
    padding: 40px;
}

.nmx-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: nmx-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Profile Page */
.nmx-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.nmx-profile h2 {
    color: #1a1a1a;
    margin-bottom: 30px;
}

.nmx-measurements-list {
    display: grid;
    gap: 20px;
}

.nmx-measurement-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nmx-measurement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nmx-measurement-header h3 {
    margin: 0;
    font-size: 18px;
}

.nmx-measurement-time {
    color: #666;
    font-size: 14px;
}

.nmx-measurement-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nmx-measurement-body h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.nmx-measurement-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nmx-measurement-body li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.nmx-measurement-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.nmx-download-pdf {
    display: inline-block;
    padding: 10px 20px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.nmx-download-pdf:hover {
    background: #333;
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nmx-bike-fitting-form {
        padding: 20px;
    }
    
    .nmx-form-row {
        grid-template-columns: 1fr;
    }
    
    .nmx-results-actions {
        flex-direction: column;
    }
    
    .nmx-action-btn {
        width: 100%;
    }
    
    .nmx-measurement-body {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .nmx-form-actions,
    .nmx-results-actions {
        display: none;
    }
    
    .nmx-bike-fitting-form {
        box-shadow: none;
    }
}
