.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
    .contrast-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Controls Column */
.contrast-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.color-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: none;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
    border: 1px solid #ddd;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1em;
    text-transform: uppercase;
    color: #333;
}

.swap-colors {
    display: flex;
    justify-content: center;
}

#btn-swap {
    background: #fff;
    border: 1px solid #dee2e6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-swap:hover {
    background: #e9ecef;
    transform: rotate(180deg);
}

/* Results Column */
.contrast-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.score-card {
    text-align: center;
    margin-bottom: 10px;
}

.contrast-ratio-display {
    font-size: 4rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.ratio-label {
    font-size: 2rem;
    color: #95a5a6;
    font-weight: 400;
}

.rating-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-top: 10px;
    background: #27ae60;
    color: white;
}

.preview-card {
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}

.preview-text-large {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.preview-text-normal {
    font-size: 16px;
    line-height: 1.5;
}

/* Checklist Grid */
.wcag-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wcag-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcag-grade {
    font-weight: 600;
    color: #555;
}

.wcag-status {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    text-transform: uppercase;
}

.status-pass {
    background: #d4edda;
    color: #155724;
}

.status-fail {
    background: #f8d7da;
    color: #721c24;
}

/* Specific button styles from loremipsum */
.btn-back-tools {
    margin-bottom: 30px;
    background-color: #f1f3f5;
    color: #495057;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}
.btn-back-tools:hover {
    background-color: #e9ecef;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    border-radius: 15px;
}
.tips-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}
.tips-list {
    list-style: none;
    padding: 0;
}
.tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tips-list li:last-child {
    border-bottom: none;
}

/* CTA Styles reused */
.cta-security {
  margin: 50px 0 0 0;
  background: linear-gradient(90deg, #23c6fa 10%, #23315a 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(35,49,90,0.09);
}

.cta-security-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 38px 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-security-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-btn.btn-accent {
  background: linear-gradient(90deg, #fd746c, #ff9068);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 30px;
  box-shadow: 0 4px 16px rgba(253,116,108,0.12);
  text-decoration: none;
  display: inline-block;
}
