/* Inherit base calculator styles */
@import '../styles.css';

/* Calculator specific overrides */
.calculator-features li::before {
    color: var(--orange-red);
}

.result-value {
    color: var(--black);
}

/* Input hint styling */
.input-hint {
    font-size: 12px;
    color: var(--body-display);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.form-group.error .input-hint {
    color: var(--red-warning);
}

/* Update button styling */
.calculate-button {
    background: var(--blue-fisagency);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.calculate-button:hover {
    background: var(--orange-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.calculate-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.calculate-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 69, 125, 0.3);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.calculate-button,
.reset-button {
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calculate-button {
    background: var(--blue-fisagency);
    color: white;
    border: none;
}

.calculate-button:hover {
    background: var(--orange-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.calculate-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.calculate-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 69, 125, 0.3);
}

.reset-button {
    background: white;
    color: var(--blue-fisagency);
    border: 1px solid var(--blue-fisagency);
}

.reset-button:hover {
    background: var(--grey);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.reset-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.reset-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 69, 125, 0.2);
}

/* Custom styling for ROI calculator */
.results-grid {
    margin-bottom: 32px;
}

.result-card {
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
}

.recommendation {
    background: rgba(255, 75, 39, 0.05);
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .calculator-features {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        gap: 12px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .calculate-button,
    .reset-button {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
        height: 44px;
    }
}

/* Platform select styling */
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--pinstripe);
    border-radius: 2px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: var(--black);
    background: white;
    cursor: pointer;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select:focus {
    outline: none;
    border-color: var(--blue-fisagency);
    box-shadow: 0 0 0 3px rgba(44, 69, 125, 0.1);
}

/* Platform-specific recommendation styling */
.recommendation {
    white-space: pre-line;
    line-height: 1.6;
}

.recommendation br {
    margin-bottom: 8px;
}

/* Platform icons */
.form-group {
    position: relative;
}

.platform-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-icon.visible {
    opacity: 1;
}

.form-group select.has-icon {
    padding-left: 44px;
}

/* Platform-specific icons */
.platform-icon[data-platform="facebook"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234267B2'%3E%3Cpath d='M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z'/%3E%3C/svg%3E");
}

.platform-icon[data-platform="instagram"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4405F'%3E%3Cpath d='M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.384 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z'/%3E%3C/svg%3E");
}

/* Add remaining platform icons */
.platform-icon[data-platform="linkedin"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230A66C2'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.platform-icon[data-platform="twitter"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231DA1F2'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
}

.platform-icon[data-platform="tiktok"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
}

.platform-icon[data-platform="pinterest"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E60023'%3E%3Cpath d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.878-2.878-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E");
}

.platform-icon[data-platform="all"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z'/%3E%3C/svg%3E");
}

/* Add platform-specific colors for result cards */
.result-card[data-platform="linkedin"] {
    border-color: #0A66C2;
}

.result-card[data-platform="twitter"] {
    border-color: #1DA1F2;
}

.result-card[data-platform="tiktok"] {
    border-color: #000000;
}

.result-card[data-platform="pinterest"] {
    border-color: #E60023;
}

.result-card[data-platform="all"] {
    border-color: #666666;
}

/* Ensure all numbers stay black */
.form-group input,
.result-value,
#roiResult,
#cpcResult,
#rpcResult {
    color: var(--black) !important;
}

/* Enhance result cards with platform context */
.result-card.with-platform::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Info card styling */
.info-card h3 {
    color: var(--black);
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Service badge styling */
.service-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 100px;
    margin-top: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-badge.popular {
    background: linear-gradient(135deg, var(--orange-red) 0%, #FF8E53 90%);
    box-shadow: 0 2px 12px rgba(255, 75, 39, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-badge.new {
    background: linear-gradient(135deg, var(--blue-fisagency) 0%, #4B84E5 90%);
    box-shadow: 0 2px 12px rgba(44, 69, 125, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-text {
    font-size: 10.5px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-family: Poppins, sans-serif;
    opacity: 0.95;
    white-space: nowrap;
    text-align: center;
}

/* Add hover effect */
.service-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44, 69, 125, 0.2);
} 