.dwd-calculator-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dwd-calc-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
}

.dwd-calc-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dwd-calc-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dwd-calc-label {
    font-size: 15px;
    font-weight: 600;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dwd-calc-required {
    color: #e74c3c;
    font-size: 18px;
}

/* Field Medya Gösterimi */
.dwd-field-media-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.dwd-field-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dwd-field-video video {
    width: 100%;
    max-height: 300px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dwd-field-description-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Option Medya Gösterimi (Dinamik) */
.dwd-option-media-display {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.dwd-option-media-display.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.dwd-option-media-display img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dwd-option-media-display video {
    width: 100%;
    max-height: 250px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dwd-option-media-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.dwd-calc-input,
.dwd-calc-select,
.dwd-calc-textarea {
    width: 100% !important;
    font-size: 15px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.dwd-calc-input,
.dwd-calc-textarea,
.dwd-calc-select {
    padding: 12px 16px;
}

.dwd-calc-input:focus,
.dwd-calc-select:focus,
.dwd-calc-textarea:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1) !important;
}

.dwd-input-error {
    border-color: #e74c3c !important;
}

.dwd-calc-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3498db 0%, #3498db 50%, #e0e6ed 50%, #e0e6ed 100%);
    outline: none;
    -webkit-appearance: none;
}

.dwd-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52,152,219,0.4);
    transition: all 0.2s ease;
}

.dwd-calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.dwd-calc-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52,152,219,0.4);
    border: none;
}

.dwd-range-value {
    display: inline-block;
    padding: 4px 12px;
    background: #ecf0f1;
    border-radius: 20px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-top: 8px;
}

.dwd-calc-radio-group,
.dwd-calc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dwd-calc-radio-item,
.dwd-calc-checkbox-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dwd-calc-radio-item:hover,
.dwd-calc-checkbox-item:hover {
    border-color: #3498db;
    background: #f8fbff;
}

.dwd-calc-radio-item input,
.dwd-calc-checkbox-item input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dwd-calc-radio-item.checked,
.dwd-calc-checkbox-item.checked {
    border-color: #3498db;
    background: #f0f8ff;
}

.dwd-calc-result {
    padding: 25px;
    background: #E4032F;
    border-radius: 12px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-height: 0;
    overflow: hidden;
}

.dwd-calc-result-visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
}

.dwd-calc-result-header h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.dwd-calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dwd-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.dwd-breakdown-label {
    font-size: 14px;
    opacity: 0.95;
}

.dwd-breakdown-price {
    font-weight: 700;
    font-size: 16px;
}

.dwd-calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    margin-top: 15px;
}

.dwd-calc-total-label {
    font-size: 18px;
    font-weight: 600;
}

.dwd-calc-total-amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dwd-calc-kvkk {
    margin: 30px 0;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.dwd-calc-kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.dwd-calc-kvkk-checkbox {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.dwd-calc-kvkk-text {
    flex: 1;
    color: #856404;
}

.dwd-kvkk-link {
    color: #0056b3;
    text-decoration: underline;
    font-weight: 600;
}

.dwd-kvkk-link:hover {
    color: #003d82;
}

/* KVKK Modal */
.dwd-kvkk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.dwd-kvkk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dwd-kvkk-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 50px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.dwd-kvkk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #eee;
}

.dwd-kvkk-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.dwd-kvkk-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dwd-kvkk-modal-close:hover {
    color: #333;
}

.dwd-kvkk-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.dwd-kvkk-modal-body p {
    margin-bottom: 15px;
}

.dwd-kvkk-modal-body h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.dwd-kvkk-modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dwd-calc-user-info {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.dwd-calc-user-info h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
}

.dwd-calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dwd-calc-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dwd-calc-col label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}

.dwd-calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.dwd-calc-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dwd-calc-btn-primary {
    background: #E4032F;
    color: #fff;
}

.dwd-calc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(228,3,47,0.4);
}

.dwd-calc-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.dwd-calc-btn-secondary:hover {
    background: #d5dbdb;
}

.dwd-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.dwd-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: dwd-spin 0.6s linear infinite;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dwd-calc-error,
.dwd-calc-success {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.dwd-calc-error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.dwd-calc-success {
    background: #efe;
    color: #0a0;
    border-left: 4px solid #0a0;
}
/* Video Modal */
.dwd-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.9);
}

.dwd-video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dwd-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.dwd-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.dwd-video-modal-close:hover {
    transform: scale(1.2);
}

.dwd-video-modal-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.dwd-video-modal-player iframe,
.dwd-video-modal-player video {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .dwd-calculator-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .dwd-calc-title {
        font-size: 22px;
    }
    
    .dwd-calc-row {
        grid-template-columns: 1fr;
    }
    
    .dwd-calc-actions {
        flex-direction: column;
    }
    
    .dwd-calc-btn {
        width: 100%;
    }
    
    .dwd-calc-total-amount {
        font-size: 24px;
    }
    
    .dwd-kvkk-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: 95vh;
    }
    
    .dwd-kvkk-modal-header,
    .dwd-kvkk-modal-body,
    .dwd-kvkk-modal-footer {
        padding: 15px 20px;
    }
    
    .dwd-kvkk-modal-footer {
        flex-direction: column;
    }
    
    .dwd-kvkk-modal-footer .dwd-calc-btn {
        width: 100%;
    }
}