/* NDOFT main styles extracted from functions.php */
.ndoft-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ndoft-calculator * {
    box-sizing: border-box;
}

.ndoft-main-content {
    padding: 30px;
}

.ndoft-form-section {
    margin-bottom: 30px;
}

.ndoft-section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.ndoft-county-selection select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.3s;
}

.ndoft-county-selection select:focus {
    outline: none;
    border-color: #0073aa;
}

.ndoft-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.ndoft-source-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ndoft-source-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.1);
}

.ndoft-source-card.active {
    border-color: #00a32a;
    background: #f8fff9;
}

.ndoft-source-card h4 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.ndoft-form-group {
    margin-bottom: 15px;
}

.ndoft-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.ndoft-form-group select,
.ndoft-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.ndoft-form-group select:focus,
.ndoft-form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.ndoft-dimension-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ndoft-calculated-values {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.ndoft-calculated-values .value-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ndoft-calculated-values .value-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #0073aa;
}

.ndoft-total-emission {
    background: linear-gradient(135deg, #00a32a 0%, #00ba37 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.ndoft-total-emission h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ndoft-total-emission .value {
    font-size: 2rem;
    font-weight: bold;
}

.ndoft-map-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.ndoft-map-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 10px;
}

.ndoft-map-controls .ndoft-map-search {
    flex: 1;
    margin: 0;
}

.ndoft-map-controls .ndoft-county-selection {
    flex: 0 0 200px;
}

@media (max-width: 600px) {
    .ndoft-map-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .ndoft-map-controls .ndoft-county-selection {
        flex: 1 1 auto;
    }
}

.ndoft-map-search {
    display: flex;
    gap: 10px;
}

.ndoft-map-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.ndoft-map-search button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.ndoft-map-search button:hover {
    background: #005a87;
}

.ndoft-map-search-status {
    text-align: center;
    font-size: 0.85rem;
    min-height: 1.2em;
    margin-bottom: 10px;
    color: #666;
}

.ndoft-map-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ndoft-map {
    height: 480px;
    width: 100%;
    z-index: 0;
}

.ndoft-map-prompt {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    z-index: 500;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ndoft-map {
        height: 340px;
    }
    .ndoft-map-prompt {
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

.ndoft-results-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.ndoft-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ndoft-setback-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ndoft-setback-table h4 {
    background: #0073aa;
    color: white;
    padding: 15px;
    margin: 0;
    text-align: center;
}

.ndoft-setback-table table {
    width: 100%;
    border-collapse: collapse;
}

.ndoft-setback-table th,
.ndoft-setback-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ndoft-setback-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.ndoft-setback-table .distance {
    font-weight: 600;
    color: #0073aa;
}

.ndoft-chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ndoft-chart-container h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.ndoft-chart-wrapper {
    position: relative;
    height: 400px;
}

.ndoft-download-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ndoft-download-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,115,170,0.2);
}

.ndoft-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,115,170,0.3);
}

.ndoft-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ndoft-pdf-layout {
    display: none;
    background: white;
    padding: 20px;
    width: 800px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.4;
}

.ndoft-pdf-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.ndoft-pdf-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.ndoft-pdf-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.ndoft-pdf-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ndoft-pdf-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.ndoft-pdf-info-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.ndoft-pdf-emission-box {
    background: linear-gradient(135deg, #00a32a 0%, #00ba37 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}

.ndoft-pdf-emission-box h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.ndoft-pdf-emission-box .value {
    font-size: 1.8rem;
    font-weight: bold;
}

.ndoft-pdf-results {
    margin-top: 20px;
}

.ndoft-pdf-results h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.ndoft-pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.85rem;
}

.ndoft-pdf-table th,
.ndoft-pdf-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ndoft-pdf-table th {
    background: #0073aa;
    color: white;
    font-size: 0.8rem;
}

.ndoft-pdf-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.ndoft-pdf-chart-section {
    margin: 20px 0;
    text-align: center;
}

.ndoft-pdf-chart-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: white;
}

@media (max-width: 768px) {
    .ndoft-main-content {
        padding: 20px;
    }
    .ndoft-sources-grid {
        grid-template-columns: 1fr;
    }
    .ndoft-results-grid {
        grid-template-columns: 1fr;
    }
    .ndoft-dimension-row {
        grid-template-columns: 1fr;
    }
}
