/* Updated styles to resemble speediest.net with new color coding and navigation */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(0, 53, 105);
    color: #333;
    line-height: 1.6;
}

.custom-banner {
    width: 100%;
    max-width: 1200px; /* Matches container width, adjust if needed */
    height: auto; /* Adjust to your banner's aspect ratio, e.g., 250px or 300px */
    margin: 0 auto 20px; /* Centers and adds space below */
    display: block; /* Ensures proper centering */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Consistent with header */
    object-fit: cover; /* Ensures the image fits without distortion */
}

.banner {
    width: 100%;
    max-width: 1200px;
    height: 250px;
    text-align: center;
    padding: 20px;
  /*  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    z-index: 1;
}

.banner h1 {
    font-size: 2.5em;
    margin: 0 0 10px;
    font-weight: 700;
    color: #fff;
}

.banner p {
    font-size: 1.2em;
    margin: 0 0 15px;
    color: #fff;
}

.banner .cta-button {
    background-color: #fff;
    color: #007bff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s; 
}

.banner .cta-button:hover {
    background-color: #e9ecef;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/PMH_Banner.png') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

@media (max-width: 768px) {
    .banner {
        height: 180px;
    }
    .banner h1 {
        font-size: 1.8em;
    }
    .banner p {
        font-size: 1em;
    }
    .banner .cta-button {
        padding: 8px 16px;
        font-size: 1em;
    }
    .custom-banner {
        height: auto; /* Scales proportionally */
        max-width: 100%; /* Full width on mobile */
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 250px;
    height: auto;
    margin: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: #e9ecef;
    border-radius: 5px;
}

.nav-menu a.active {
    background-color: rgb(0, 53, 105);
    color: #fff;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    .nav-menu li {
        margin: 0.5rem 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0;
}

.form-wrapper {
    flex: 2;
    max-width: 600px;
}

.centered-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.error {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

.mandatory-note {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    color: #004085;
    font-size: 0.9rem;
}

.domain-validator {
    margin-top: 8px;
    padding: 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    display: none;
}

.domain-validator.show {
    display: block;
}

.domain-validator.valid { background: #d1ecf1; border: 1px solid #bee5eb; }
.domain-validator.invalid { background: #f8d7da; border: 1px solid #f5c6cb; }
.domain-validator.checking { background: #fff3cd; border: 1px solid #ffeeba; }
.domain-validator.error { background: #f8d7da; border: 1px solid #f5c6cb; }

.validation-status { display: flex; align-items: center; gap: 5px; }
.validation-icon { font-size: 1rem; }

.domain-restriction-note {
    display: none;
    margin-top: 5px;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
}

.domain-restriction-note.show {
    display: block;
}

.domain-help {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #000204;
}

.domain-help ul {
    padding-left: 20px;
    margin: 5px 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.generate-btn {
    background: #007bff;
    color: #fff;
}

.verify-btn {
    background: #28a745;
    color: #fff;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.action-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.action-btn .spinner {
    display: none;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

.action-btn.loading .spinner {
    display: inline-block;
}

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

.form-tip {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #000101;
}

.result-container {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
}

.info-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.info-section h2 {
    margin-top: 0;
    color: #333;
}

.info-section ul {
    padding-left: 20px;
    margin: 10px 0;
}

.verification-comparison {
    margin-top: 10px;
}

.verification-comparison table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.verification-comparison th,
.verification-comparison td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.verification-comparison th {
    background: #f8f9fa;
    font-weight: 600;
}

.ad-placeholder {
    background: #e9ecef;
    text-align: center;
    font-style: italic;
    color: #6c757d;
    border-radius: 4px;
}

#ad-top {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
}

.ad-sidebar {
    width: 160px;
    padding: 10px;
    margin: 0 10px;
    height: 600px; /* Minimum height to match form area, adjust as needed */
    background: #e9ecef;
}

.left-ad { order: 1; }
.right-ad { order: 3; }
.form-wrapper { order: 2; }

.use-cases {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

.use-cases h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 20px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.use-case-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
}

.use-case-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.use-case-card h3 {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #333;
}

.use-case-card p {
    font-size: 1em;
    color: #666;
    margin: 0 0 15px;
}

@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
    }
    .ad-sidebar {
        width: 100%;
        height: auto;
        min-height: 400px;
        margin: 10px 0;
    }
    .centered-form {
        max-width: 100%;
        padding: 15px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}