/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Settlement and Building Type Grid Styles */
.settlement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

body {
    font-family: "Inter", Sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #000;
    font-size: 2rem;
    font-weight: 600;
}

/* Step Indicator */
.step-indicator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #ffcb05;
    border-color: #ffcb05;
    color: #000;
}

.step-indicator.completed {
    background-color: #000000;
    border-color: #000000;
    color: #fff;
}

.step-connector {
    width: 200px;
    height: 1px;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.step-connector.completed {
    background-color: #000000;
}

/* Card Styles */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card-header {
    padding: 24px 24px 0;
    border-bottom: none;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.card-content {
    padding: 24px;
}

/* Form Styles */
.step {
    display: none;
}

.step.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #ffcb05;
    box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.1);
}

#form-response {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}
.success-message {
  background-color: #e6fbe6;
  color: #0a0;
}
.error-message {
  background-color: #fbe6e6;
  color: #a00;
}



/*select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}*/

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.targeting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.regions-container {
    margin-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #ffcb05;
    border-color: #ffcb05;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

/* Summary Styles */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-item span {
    font-weight: 600;
    color: #000;
}

.summary-targeting {
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.summary-targeting label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

#summary-targeting-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.badge.primary {
    background-color: #fef3c7;
    border-color: #ffcb05;
    color: #92400e;
}

/* Reach Section */
.reach-section {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.reach-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.reach-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.reach-stat {
    text-align: center;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
}

.reach-stat label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.reach-value,
.impressions-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffcb05;
    margin-bottom: 4px;
}

.reach-stat small {
    font-size: 12px;
    color: #9ca3af;
}

.frequency-control {
    text-align: center;
}

.frequency-control input {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* Email Section */
.email-section {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.email-section small {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background-color: #ffcb05;
    color: #000;
}

.btn-primary:hover:not(:disabled) {
    background-color: #fbbf24;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .step-connector {
        width: 40px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .reach-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
    }
    
    .regions-grid,
    .targeting-grid {
        grid-template-columns: 1fr;
    }
    .card-header h2 {
        font-size: 1.1rem;
    }
    input[type="text"], input[type="email"], input[type="number"], select{
        font-size: 16px;
    }
}