/* Custom styles for SEO Rank Gauge
 * Modern, responsive design inspired by LocalO.com
 */

/* Main container */
.srg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Header */
.srg-header {
    text-align: center;
    margin-bottom: 30px;
}

.srg-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e73be;
    margin-bottom: 10px;
}

.srg-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Stat highlight */
.srg-stat-highlight {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.srg-stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.srg-stat-highlight h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 10px;
}

/* Form container */
.srg-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.srg-form-wrapper {
    flex: 1 1 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.srg-form-sidebar {
    flex: 1 1 300px;
}

/* Form intro */
.srg-form-intro {
    margin-bottom: 20px;
}

.srg-form-intro h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 10px;
}

/* Form fields */
.srg-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.srg-form-field {
    margin-bottom: 15px;
}

.srg-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.srg-form-field input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.srg-form-field input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

.srg-field-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.required {
    color: #e53935;
}

/* Form submit */
.srg-form-submit {
    text-align: center;
    margin-top: 20px;
}

.srg-submit-button {
    background-color: #1e73be;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.srg-submit-button:hover {
    background-color: #1a65a8;
}

.srg-privacy-note {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

/* Sidebar */
.srg-sidebar-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.srg-sidebar-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 15px;
}

.srg-benefits-list {
    padding-left: 20px;
}

.srg-benefits-list li {
    margin-bottom: 10px;
    position: relative;
}

.srg-benefits-list li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-left: -20px;
}

/* Loading */
.srg-loading {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.srg-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #1e73be;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: srg-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results */
.srg-results {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.srg-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.srg-results-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 10px;
}

.srg-business-name {
    font-size: 18px;
    font-weight: 600;
}

/* Score overview */
.srg-score-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.srg-overall-score {
    flex: 0 0 auto;
    text-align: center;
}

.srg-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.srg-score-circle:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(#4caf50 0%, #8bc34a 50%, #ffeb3b 75%, #ff9800 87.5%, #f44336 100%);
    opacity: 0.2;
    z-index: 0;
}

.srg-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #1e73be;
    z-index: 1;
}

.srg-score-max {
    font-size: 18px;
    color: #777;
    z-index: 1;
}

.srg-score-label {
    font-size: 16px;
    font-weight: 600;
}

.srg-score-breakdown {
    flex: 1 1 400px;
}

.srg-score-category {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.srg-category-name {
    flex: 0 0 180px;
    font-weight: 600;
}

.srg-category-bar {
    flex: 1;
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 15px;
}

.srg-category-progress {
    height: 100%;
    background-color: #1e73be;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.srg-category-score {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 600;
}

/* Growth potential */
.srg-growth-potential {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.srg-growth-potential h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 20px;
    text-align: center;
}

.srg-potential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.srg-potential-item {
    text-align: center;
}

.srg-potential-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.srg-potential-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.srg-potential-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e73be;
}

/* Recommendations */
.srg-recommendations {
    margin-bottom: 40px;
}

.srg-recommendations h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e73be;
    margin-bottom: 20px;
}

.srg-recommendation-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #1e73be;
}

.srg-recommendation-item.high {
    border-left-color: #f44336;
}

.srg-recommendation-item.medium {
    border-left-color: #ff9800;
}

.srg-recommendation-item.low {
    border-left-color: #4caf50;
}

.srg-recommendation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.srg-recommendation-priority {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.srg-recommendation-priority.high {
    background-color: #ffebee;
    color: #f44336;
}

.srg-recommendation-priority.medium {
    background-color: #fff3e0;
    color: #ff9800;
}

.srg-recommendation-priority.low {
    background-color: #e8f5e9;
    color: #4caf50;
}

.srg-recommendation-description {
    margin-bottom: 15px;
}

.srg-recommendation-action {
    font-weight: 600;
}

/* CTA section */
.srg-cta-section {
    background-color: #1e73be;
    color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.srg-cta-section h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.srg-cta-section p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.srg-cta-button {
    display: inline-block;
    background-color: #fff;
    color: #1e73be;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.srg-cta-button:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .srg-form-fields {
        grid-template-columns: 1fr;
    }
    
    .srg-score-overview {
        flex-direction: column;
    }
    
    .srg-score-category {
        flex-wrap: wrap;
    }
    
    .srg-category-name {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
    
    .srg-category-bar {
        flex: 1 1 auto;
        margin: 0 10px 0 0;
    }
}


/* Logo style */
.srg-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}
